From 6e6af5fc90c5323cbd5a725bbe3cfef6acd91b55 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 18 Dec 2021 18:18:19 +0200 Subject: [PATCH] Update sv_common_reference_test to check BOOST_NO_CXX20_HDR_CONCEPTS --- test/sv_common_reference_test.cpp | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/test/sv_common_reference_test.cpp b/test/sv_common_reference_test.cpp index 998e0ae..3a0b444 100644 --- a/test/sv_common_reference_test.cpp +++ b/test/sv_common_reference_test.cpp @@ -8,27 +8,14 @@ #include #include -#if BOOST_CXX_VERSION < 202000L +#if defined(BOOST_NO_CXX20_HDR_CONCEPTS) -BOOST_PRAGMA_MESSAGE( "Skipping test because BOOST_CXX_VERSION is " BOOST_STRINGIZE(BOOST_CXX_VERSION) ) -int main() {} - -#else - -#include - -#if !defined(__cpp_lib_concepts) - -BOOST_PRAGMA_MESSAGE( "Skipping test because __cpp_lib_concepts is not defined" ) -int main() {} - -#elif __cpp_lib_concepts < 201907L - -BOOST_PRAGMA_MESSAGE( "Skipping test because __cpp_lib_concepts is " BOOST_STRINGIZE(__cpp_lib_concepts) ) +BOOST_PRAGMA_MESSAGE( "Skipping test because BOOST_NO_CXX20_HDR_CONCEPTS is defined" ) int main() {} #else +#include #include using T = std::common_reference_t< boost::core::string_view&&, std::string& >; @@ -45,4 +32,3 @@ int main() } #endif -#endif