From f1f0aeb0b43425f6511b7637a1620f8760394d81 Mon Sep 17 00:00:00 2001 From: Mateusz Jakub Fila Date: Fri, 20 Dec 2024 00:26:13 +0100 Subject: [PATCH] add more detailed checks for `contiguous_iterator` --- tests/unittests/std_interoperability.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unittests/std_interoperability.cpp b/tests/unittests/std_interoperability.cpp index 82c4d432d..cee625c5b 100644 --- a/tests/unittests/std_interoperability.cpp +++ b/tests/unittests/std_interoperability.cpp @@ -742,7 +742,11 @@ TEST_CASE("Collection and unsupported iterator concepts", "[collection][containe DOCUMENTED_STATIC_FAILURE(std::output_iterator); DOCUMENTED_STATIC_FAILURE(std::output_iterator); // std::contiguous_iterator + DOCUMENTED_STATIC_FAILURE(std::is_lvalue_reference_v); + DOCUMENTED_STATIC_FAILURE(std::same_as>); DOCUMENTED_STATIC_FAILURE(std::contiguous_iterator); + DOCUMENTED_STATIC_FAILURE(std::is_lvalue_reference_v); + STATIC_REQUIRE(std::same_as>); DOCUMENTED_STATIC_FAILURE(std::contiguous_iterator); } #endif // __cplusplus >= 202002L