From ac47be51b79f4c3e49656870e135453eefe759ea Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 7 Nov 2024 23:38:52 +0100 Subject: Some more work on asl::string_view --- asl/tests/span_tests.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'asl/tests/span_tests.cpp') diff --git a/asl/tests/span_tests.cpp b/asl/tests/span_tests.cpp index aca0fb3..3baaf5c 100644 --- a/asl/tests/span_tests.cpp +++ b/asl/tests/span_tests.cpp @@ -94,14 +94,14 @@ ASL_TEST(conversion) ASL_TEST_EXPECT(span4[2] == 3); } -template +template [[maybe_unused]] static auto try_static_subspan(int) -> decltype(asl::declval().template subspan()); -template +template [[maybe_unused]] static auto try_static_subspan(...) -> asl::empty; -template +template concept invalid_subspan = asl::same_as(0)), asl::empty>; static_assert(asl::same_as, @@ -216,14 +216,14 @@ ASL_TEST(subspan_dynamic) ASL_TEST_EXPECT(s4[1] == 3); } -template +template [[maybe_unused]] static auto try_static_first(int) -> decltype(asl::declval().template first()); -template +template [[maybe_unused]] static auto try_static_first(...) -> asl::empty; -template +template concept invalid_first = asl::same_as(0)), asl::empty>; static_assert(asl::same_as, @@ -320,14 +320,14 @@ ASL_TEST(first_dynamic) ASL_TEST_EXPECT(s3[3] == 4); } -template +template [[maybe_unused]] static auto try_static_last(int) -> decltype(asl::declval().template last()); -template +template [[maybe_unused]] static auto try_static_last(...) -> asl::empty; -template +template concept invalid_last = asl::same_as(0)), asl::empty>; static_assert(asl::same_as, -- cgit