diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index 0836dab..620fef3 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -447,7 +447,7 @@ TEST(span_test, from_container_constructor) const std::string cstr = "hello"; { -#ifdef FAIL_ON_SOME_PLATFORMS +#if __cplusplus >= 201703L span s{str}; EXPECT_TRUE(s.size() == str.size()); EXPECT_TRUE(s.data() == str.data()); @@ -1287,9 +1287,9 @@ static_assert(!CtorCompilesFor, const std::vector&&>, "!CtorCompilesFor, const std::vector&&>"); #endif -#ifdef FAIL_ON_SOME_PLATFORMS -static_assert(CtorCompilesFor, std::string&>, - "CtorCompilesFor, std::string&>"); +#if __cplusplus < 201703L +static_assert(!CtorCompilesFor, std::string&>, + "!CtorCompilesFor, std::string&>"); #endif static_assert(CtorCompilesFor, std::string&&>, "CtorCompilesFor, std::string&&>");