Skip to content

Commit ad01447

Browse files
authored
[libcxx] Fix typo in parallel for_each_n test (#78954)
This fixes a trivial copy and paste error where we forgot to change `for_each` to `for_each_n`
1 parent 6aeb7a7 commit ad01447

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/pstl.for_each_n.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
#include "test_execution_policies.h"
2626
#include "test_iterators.h"
2727

28-
EXECUTION_POLICY_SFINAE_TEST(for_each);
28+
EXECUTION_POLICY_SFINAE_TEST(for_each_n);
2929

30-
static_assert(sfinae_test_for_each<int, int*, int*, bool (*)(int)>);
31-
static_assert(!sfinae_test_for_each<std::execution::parallel_policy, int*, int*, bool (*)(int)>);
30+
static_assert(sfinae_test_for_each_n<int, int*, int, bool (*)(int)>);
31+
static_assert(!sfinae_test_for_each_n<std::execution::parallel_policy, int*, int, bool (*)(int)>);
3232

3333
template <class Iter>
3434
struct Test {

0 commit comments

Comments
 (0)