From e60f0ea138259e4d571b5b0a4cdfb0e84f942446 Mon Sep 17 00:00:00 2001 From: Werner Henze Date: Sat, 4 Jan 2025 09:13:21 +0100 Subject: [PATCH] comment test 1 --- tests/span_tests.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index d77f074..01fe26d 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -257,8 +257,7 @@ TEST(span_test, from_pointer_pointer_construction) EXPECT_TRUE(s.data() == &arr[0]); } - // this will fail the std::distance() precondition, which asserts on MSVC debug builds - //{ // this test succeeds on all platforms, but it relies on UB + //{ // this test succeeds on all platforms, gsl::span is more relaxed than std::span where this would be UB // auto workaround_macro = [&]() { span s{&arr[1], &arr[0]}; }; // EXPECT_DEATH(workaround_macro(), expected); //}