Merge pull request #419 from boostorg/issue416

Fix issues 416 and 417
This commit is contained in:
jzmaddock
2022-02-03 14:41:18 +00:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@@ -1159,7 +1159,7 @@ namespace std{ using ::type_info; }
#if !__has_include(<format>) #if !__has_include(<format>)
# define BOOST_NO_CXX20_HDR_FORMAT # define BOOST_NO_CXX20_HDR_FORMAT
#endif #endif
#if !__has_include(<source_Location>) #if !__has_include(<source_location>)
# define BOOST_NO_CXX20_HDR_SOURCE_LOCATION # define BOOST_NO_CXX20_HDR_SOURCE_LOCATION
#endif #endif
#if !__has_include(<bit>) #if !__has_include(<bit>)

View File

@@ -176,7 +176,9 @@
#endif #endif
// C++17 features // C++17 features
#if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) || !defined(BOOST_MSVC) || (BOOST_MSVC < 1910) || !defined(_HAS_CXX17) || (_HAS_CXX17 == 0) #if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) \
|| ((!defined(BOOST_MSVC) || (BOOST_MSVC < 1910))) && (!defined(__clang__) || !defined(_MSC_VER) || (_MSC_VER < 1929))\
|| !defined(_HAS_CXX17) || (_HAS_CXX17 == 0)
# define BOOST_NO_CXX17_STD_APPLY # define BOOST_NO_CXX17_STD_APPLY
# define BOOST_NO_CXX17_ITERATOR_TRAITS # define BOOST_NO_CXX17_ITERATOR_TRAITS
# define BOOST_NO_CXX17_HDR_STRING_VIEW # define BOOST_NO_CXX17_HDR_STRING_VIEW
@@ -213,6 +215,12 @@
# define BOOST_NO_CXX20_HDR_SOURCE_LOCATION # define BOOST_NO_CXX20_HDR_SOURCE_LOCATION
# define BOOST_NO_CXX20_HDR_SYNCSTREAM # define BOOST_NO_CXX20_HDR_SYNCSTREAM
#endif #endif
#if !defined(BOOST_NO_CXX20_HDR_COROUTINE) && !defined(__cpp_lib_coroutine)
# define BOOST_NO_CXX20_HDR_COROUTINE
#endif
#if !defined(BOOST_NO_CXX20_HDR_SOURCE_LOCATION) && !defined(__cpp_consteval)
# define BOOST_NO_CXX20_HDR_SOURCE_LOCATION
#endif
// Incomplete: // Incomplete:
# define BOOST_NO_CXX20_HDR_RANGES # define BOOST_NO_CXX20_HDR_RANGES