mirror of
https://github.com/boostorg/core.git
synced 2025-05-10 07:13:54 +00:00
Update sv_common_reference_test to check BOOST_NO_CXX20_HDR_CONCEPTS
This commit is contained in:
parent
95f2a76c90
commit
6e6af5fc90
@ -8,27 +8,14 @@
|
|||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#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) )
|
BOOST_PRAGMA_MESSAGE( "Skipping test because BOOST_NO_CXX20_HDR_CONCEPTS is defined" )
|
||||||
int main() {}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include <version>
|
|
||||||
|
|
||||||
#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) )
|
|
||||||
int main() {}
|
int main() {}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#include <concepts>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
using T = std::common_reference_t< boost::core::string_view&&, std::string& >;
|
using T = std::common_reference_t< boost::core::string_view&&, std::string& >;
|
||||||
@ -45,4 +32,3 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user