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