[Bug libstdc++/58357] In C++11 std::rotate(first, middle, last) now should return a forward iterator to first + (last - middle).
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jan 17 03:16:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58357
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sat Jan 17 03:15:52 2015
New Revision: 219793
URL: https://gcc.gnu.org/viewcvs?rev=219793&root=gcc&view=rev
Log:
DR 488
PR libstdc++/58357
* include/bits/algorithmfwd.h (rotate): Return an iterator.
* include/bits/stl_algo.h (rotate, __rotate): Likewise.
* testsuite/25_algorithms/rotate/dr488.cc: New.
* testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
* testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
2.cc: Likewise.
* testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
pod.cc: Likewise.
Added:
trunk/libstdc++-v3/testsuite/25_algorithms/rotate/dr488.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/algorithmfwd.h
trunk/libstdc++-v3/include/bits/stl_algo.h
trunk/libstdc++-v3/testsuite/25_algorithms/rotate/check_type.cc
trunk/libstdc++-v3/testsuite/25_algorithms/rotate/requirements/explicit_instantiation/2.cc
trunk/libstdc++-v3/testsuite/25_algorithms/rotate/requirements/explicit_instantiation/pod.cc
More information about the Gcc-bugs
mailing list