Skip to content

Commit 25ae2d6

Browse files
std::stable_partition requires bidirectional iterators.
1 parent a9df7df commit 25ae2d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ TEST_CONSTEXPR_CXX26 void test() {
289289
vec[5] = 6;
290290
getGlobalMemCounter()->throw_after = 0;
291291
std::stable_partition(
292-
forward_iterator<int*>(vec.data()), forward_iterator<int*>(vec.data() + vec.size()), [](int i) {
292+
bidirectional_iterator<int*>(vec.data()), bidirectional_iterator<int*>(vec.data() + vec.size()), [](int i) {
293293
return i < 5;
294294
});
295295
assert(std::is_partitioned(vec.begin(), vec.end(), [](int i) { return i < 5; }));

0 commit comments

Comments
 (0)