From 9f889fcf528e9c42a0c17c8bc63afe89f749f786 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 10 Apr 2006 10:05:51 +0000 Subject: [PATCH] DR 538, [Ready] 2006-04-10 Paolo Carlini DR 538, [Ready] * include/bits/stl_algo.h (__unique_copy(,,, input_iterator_tag, output_iterator_tag), and predicated counterpart): Revert to the algorithm pre-DR 241, i.e., value_type of InputIterator is now required to be Assignable too. * testsuite/25_algorithms/unique_copy/3.cc: Remove. * docs/html/ext/howto.html: Add an entry for DR 538. From-SVN: r112818 --- libstdc++-v3/ChangeLog | 10 ++ libstdc++-v3/docs/html/ext/howto.html | 8 ++ libstdc++-v3/include/bits/stl_algo.h | 44 ++++----- .../testsuite/25_algorithms/unique_copy/3.cc | 93 ------------------- 4 files changed, 38 insertions(+), 117 deletions(-) delete mode 100644 libstdc++-v3/testsuite/25_algorithms/unique_copy/3.cc diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b0f2a3d52a3..b03febe05a8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,13 @@ +2006-04-10 Paolo Carlini + + DR 538, [Ready] + * include/bits/stl_algo.h (__unique_copy(,,, input_iterator_tag, + output_iterator_tag), and predicated counterpart): Revert to the + algorithm pre-DR 241, i.e., value_type of InputIterator is now + required to be Assignable too. + * testsuite/25_algorithms/unique_copy/3.cc: Remove. + * docs/html/ext/howto.html: Add an entry for DR 538. + 2006-03-29 Benjamin Kosnik * testsuite/data/sgetn.txt: Correct copyright holder. diff --git a/libstdc++-v3/docs/html/ext/howto.html b/libstdc++-v3/docs/html/ext/howto.html index 7fb2a6a428e..f937a14fbd2 100644 --- a/libstdc++-v3/docs/html/ext/howto.html +++ b/libstdc++-v3/docs/html/ext/howto.html @@ -573,6 +573,14 @@
Add data() to std::vector and at(const key_type&) to std::map.
+ +
538: + DR 538. 241 again: Does unique_copy() require CopyConstructible + and Assignable? +
+
In case of input_iterator/output_iterator rely on Assignability of + input_iterator' value_type. +