PR libstdc++/64903
* include/bits/stl_algo.h (is_partitioned): Use increment instead of
std::advance.
From-SVN: r244675
+2017-01-20 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/64903
+ * include/bits/stl_algo.h (is_partitioned): Use increment instead of
+ std::advance.
+
2017-01-19 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/79156
* testsuite/ext/shared_ptr/1.cc: New test.
PR libstdc++/64903
- * include/bits/stl_algo.h (is_partioned): Don't retest the partition
+ * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
point.
* testsuite/25_algorithms/is_partitioned/2.cc: New test.
__first = std::find_if_not(__first, __last, __pred);
if (__first == __last)
return true;
- std::advance(__first, 1);
+ ++__first;
return std::none_of(__first, __last, __pred);
}