Skip to content

Commit 872fd8d

Browse files
committed
Fix scan test with Clang 18
1 parent b0531a7 commit 872fd8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_scan.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ constexpr bool test_inclusive_scan()
7474
{
7575
auto scanner = []{ return flux::scan(
7676
std::views::transform(std::array{1, 2, 3, 4, 5}, std::identity{}),
77-
flux::num::add); };
77+
std::plus{}); };
7878

7979
using S = decltype(scanner());
8080

@@ -163,7 +163,7 @@ constexpr bool test_prescan()
163163
{
164164
auto scanner = []{ return flux::prescan(
165165
std::views::transform(std::array{1, 2, 3, 4, 5}, std::identity{}),
166-
flux::num::add, 0); };
166+
std::plus{}, 0); };
167167

168168
using S = decltype(scanner());
169169

@@ -244,7 +244,7 @@ constexpr bool test_scan_first()
244244
{
245245
auto scanner = []{ return flux::scan_first(
246246
std::views::transform(std::array{1, 2, 3, 4, 5}, std::identity{}),
247-
flux::num::add); };
247+
std::plus{}); };
248248

249249
using S = decltype(scanner());
250250

0 commit comments

Comments
 (0)