[Bug libstdc++/64903] is_partitioned should not apply a predicate more than (last - first) times
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 19 23:31:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64903
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Jan 19 23:30:18 2017
New Revision: 244661
URL: https://gcc.gnu.org/viewcvs?rev=244661&root=gcc&view=rev
Log:
PR64903 fix number of predicate tests in std::is_partitioned
PR libstdc++/64903
* include/bits/stl_algo.h (is_partioned): Don't retest the partition
point.
* testsuite/25_algorithms/is_partitioned/2.cc: New test.
Added:
trunk/libstdc++-v3/testsuite/25_algorithms/is_partitioned/2.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/stl_algo.h
More information about the Gcc-bugs
mailing list