Skip to content

Commit

Permalink
Fix scan test with Clang 18
Browse files Browse the repository at this point in the history
  • Loading branch information
tcbrindle committed Nov 26, 2024
1 parent b0531a7 commit 872fd8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ constexpr bool test_inclusive_scan()
{
auto scanner = []{ return flux::scan(
std::views::transform(std::array{1, 2, 3, 4, 5}, std::identity{}),
flux::num::add); };
std::plus{}); };

using S = decltype(scanner());

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

using S = decltype(scanner());

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

using S = decltype(scanner());

Expand Down

0 comments on commit 872fd8d

Please sign in to comment.