diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index 5a8e26e..ca6c4f5 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -1144,6 +1144,8 @@ static_assert(!CtorCompilesFor, std::array&>, static_assert(CtorCompilesFor, std::array&>, "CtorCompilesFor, std::array&>"); #ifdef FAIL_ON_SOME_PLATFORMS +// Fails for example on "Visual Studio 16 2019, windows-2019, Debug/Release, 14". +// Pass on all gcc, clang, xcode. static_assert(!CtorCompilesFor, std::array&&>, "!CtorCompilesFor, std::array&&>"); #endif @@ -1171,11 +1173,14 @@ static_assert(CtorCompilesFor, std::vector&>, static_assert(CtorCompilesFor, std::vector&&>, "CtorCompilesFor, std::vector&&>"); #ifdef FAIL_ON_SOME_PLATFORMS +// Fails for example on "Visual Studio 16 2019, windows-2019, Debug/Release, 14" and +// "Visual Studio 17 2022, windows-2022, Release, 14". +// Pass on all gcc, clang, xcode. static_assert(!CtorCompilesFor, std::vector&&>, "!CtorCompilesFor, std::vector&&>"); +#endif static_assert(!CtorCompilesFor, const std::vector&&>, "!CtorCompilesFor, const std::vector&&>"); -#endif #if __cplusplus < 201703L static_assert(!CtorCompilesFor, std::string&>, @@ -1215,7 +1220,8 @@ static_assert(!ConversionCompilesFor, std::array>, static_assert(ConversionCompilesFor, std::vector>, "ConversionCompilesFor, std::vector>"); #ifdef FAIL_ON_SOME_PLATFORMS -// Fails for example on "Visual Studio 16 2019, windows-2019, Release, 14". Pass on all gcc, clang, xcode. +// Fails for example on "Visual Studio 16 2019, windows-2019, Debug/Release, 14". +// Pass on all gcc, clang, xcode. static_assert(!ConversionCompilesFor, std::vector>, "!ConversionCompilesFor, std::vector>"); #endif