diff --git a/tests/std/tests/P0896R4_views_all/test.cpp b/tests/std/tests/P0896R4_views_all/test.cpp index b44020a93..0fdad26b8 100644 --- a/tests/std/tests/P0896R4_views_all/test.cpp +++ b/tests/std/tests/P0896R4_views_all/test.cpp @@ -121,10 +121,10 @@ constexpr bool test_one(Rng&& rng) { static_assert(same_as>, V>); static_assert(same_as); - static_assert(noexcept(views::all(as_const(rng))) == is_noexcept); + static_assert(noexcept(views::all(move(as_const(rng)))) == is_noexcept); static_assert(same_as); - static_assert(noexcept(as_const(rng) | views::all) == is_noexcept); + static_assert(noexcept(move(as_const(rng)) | views::all) == is_noexcept); static_assert(same_as); static_assert(noexcept(move(as_const(rng)) | views::all | views::all | views::all) == is_noexcept); diff --git a/tests/std/tests/P0896R4_views_drop/test.cpp b/tests/std/tests/P0896R4_views_drop/test.cpp index d2795e28e..f8d503138 100644 --- a/tests/std/tests/P0896R4_views_drop/test.cpp +++ b/tests/std/tests/P0896R4_views_drop/test.cpp @@ -159,10 +159,10 @@ constexpr bool test_one(Rng&& rng, Expected&& expected) { constexpr bool is_noexcept = is_nothrow_copy_constructible_v && !is_subrange; STATIC_ASSERT(same_as); - STATIC_ASSERT(noexcept(views::drop(as_const(rng), 4)) == is_noexcept); + STATIC_ASSERT(noexcept(views::drop(move(as_const(rng)), 4)) == is_noexcept); STATIC_ASSERT(same_as); - STATIC_ASSERT(noexcept(as_const(rng) | drop_four) == is_noexcept); + STATIC_ASSERT(noexcept(move(as_const(rng)) | drop_four) == is_noexcept); STATIC_ASSERT(same_as>>); STATIC_ASSERT(noexcept(move(as_const(rng)) | pipeline) == is_noexcept); diff --git a/tests/std/tests/P0896R4_views_filter/test.cpp b/tests/std/tests/P0896R4_views_filter/test.cpp index d28f5addc..9ca410023 100644 --- a/tests/std/tests/P0896R4_views_filter/test.cpp +++ b/tests/std/tests/P0896R4_views_filter/test.cpp @@ -126,10 +126,10 @@ constexpr bool test_one(Rng&& rng, Expected&& expected) { constexpr bool is_noexcept = is_nothrow_copy_constructible_v; STATIC_ASSERT(same_as); - STATIC_ASSERT(noexcept(views::filter(as_const(rng), is_even)) == is_noexcept); + STATIC_ASSERT(noexcept(views::filter(move(as_const(rng)), is_even)) == is_noexcept); STATIC_ASSERT(same_as); - STATIC_ASSERT(noexcept(as_const(rng) | filter_even) == is_noexcept); + STATIC_ASSERT(noexcept(move(as_const(rng)) | filter_even) == is_noexcept); STATIC_ASSERT(same_as>>); STATIC_ASSERT(noexcept(move(as_const(rng)) | pipeline) == is_noexcept); diff --git a/tests/std/tests/P0896R4_views_reverse/test.cpp b/tests/std/tests/P0896R4_views_reverse/test.cpp index c21a1f5be..56e1dd474 100644 --- a/tests/std/tests/P0896R4_views_reverse/test.cpp +++ b/tests/std/tests/P0896R4_views_reverse/test.cpp @@ -131,10 +131,10 @@ constexpr bool test_one(Rng&& rng, Expected&& expected) { constexpr bool is_noexcept = is_nothrow_copy_constructible_v; static_assert(same_as); - static_assert(noexcept(views::reverse(as_const(rng))) == is_nothrow_copy_constructible_v); + static_assert(noexcept(views::reverse(move(as_const(rng)))) == is_nothrow_copy_constructible_v); static_assert(same_as); - static_assert(noexcept(as_const(rng) | views::reverse) == is_nothrow_copy_constructible_v); + static_assert(noexcept(move(as_const(rng)) | views::reverse) == is_nothrow_copy_constructible_v); static_assert(same_as); static_assert(noexcept(move(as_const(rng)) | views::reverse | views::reverse | views::reverse) == is_noexcept); diff --git a/tests/std/tests/P0896R4_views_take/test.cpp b/tests/std/tests/P0896R4_views_take/test.cpp index cb18fa209..ea8c45373 100644 --- a/tests/std/tests/P0896R4_views_take/test.cpp +++ b/tests/std/tests/P0896R4_views_take/test.cpp @@ -158,10 +158,10 @@ constexpr bool test_one(Rng&& rng, Expected&& expected) { constexpr bool is_noexcept = is_nothrow_copy_constructible_v && !is_subrange; STATIC_ASSERT(same_as); - STATIC_ASSERT(noexcept(views::take(as_const(rng), 4)) == is_noexcept); + STATIC_ASSERT(noexcept(views::take(move(as_const(rng)), 4)) == is_noexcept); STATIC_ASSERT(same_as); - STATIC_ASSERT(noexcept(as_const(rng) | take_four) == is_noexcept); + STATIC_ASSERT(noexcept(move(as_const(rng)) | take_four) == is_noexcept); STATIC_ASSERT(same_as>>); STATIC_ASSERT(noexcept(move(as_const(rng)) | pipeline) == is_noexcept); diff --git a/tests/std/tests/P0896R4_views_transform/test.cpp b/tests/std/tests/P0896R4_views_transform/test.cpp index a683ba685..9a0294ad1 100644 --- a/tests/std/tests/P0896R4_views_transform/test.cpp +++ b/tests/std/tests/P0896R4_views_transform/test.cpp @@ -134,10 +134,10 @@ constexpr bool test_one(Rng&& rng, Expected&& expected) { constexpr bool is_noexcept = is_nothrow_copy_constructible_v; STATIC_ASSERT(same_as); - STATIC_ASSERT(noexcept(views::transform(as_const(rng), add8)) == is_noexcept); + STATIC_ASSERT(noexcept(views::transform(move(as_const(rng)), add8)) == is_noexcept); STATIC_ASSERT(same_as); - STATIC_ASSERT(noexcept(as_const(rng) | transform_incr) == is_noexcept); + STATIC_ASSERT(noexcept(move(as_const(rng)) | transform_incr) == is_noexcept); STATIC_ASSERT(same_as>>); STATIC_ASSERT(noexcept(move(as_const(rng)) | pipeline) == is_noexcept);