// Distributed under the Boost Software License Version 1.0 https://www.boost.org/LICENSE_1_0.txt // Copyright Gero Peterhoff #ifndef BOOST_CONFIG_MORE_HPP #define BOOST_CONFIG_MORE_HPP #include // C++17 #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201603L) #define BOOST_NO_CXX17_CONSTEXPR #endif #if defined(BOOST_NO_CXX17_CONSTEXPR) #define BOOST_CXX17_CONSTEXPR #else #define BOOST_CXX17_CONSTEXPR constexpr #endif // C++20 #if (BOOST_CXX_VERSION < 202002L) #define BOOST_NO_CXX20 #endif #if !defined(__cpp_constexpr) || (__cpp_constexpr < 202002L) #define BOOST_NO_CXX20_CONSTEXPR #endif #if defined(BOOST_NO_CXX20_CONSTEXPR) #define BOOST_CXX20_CONSTEXPR #else #define BOOST_CXX20_CONSTEXPR constexpr #endif #if !defined(__cpp_consteval) || (__cpp_consteval < 201811L) #define BOOST_CXX20_NO_CONSTEVAL #endif // C++23 #if (BOOST_CXX_VERSION < 202100L) #define BOOST_NO_CXX23 #endif #if !defined(__cpp_constexpr) || (__cpp_constexpr < 202211L) #define BOOST_NO_CXX23_CONSTEXPR #endif #if defined(BOOST_NO_CXX23_CONSTEXPR) #define BOOST_CXX23_CONSTEXPR #else #define BOOST_CXX23_CONSTEXPR constexpr #endif #if !defined(__cpp_consteval) || (__cpp_consteval < 202211L) #define BOOST_CXX23_NO_CONSTEVAL #endif #if !__has_include() #define BOOST_NO_CXX23_HDR_EXPECTED #endif #if !__has_include() #define BOOST_NO_CXX23_HDR_FLAT_MAP #endif #if !__has_include() #define BOOST_NO_CXX23_HDR_FLAT_SET #endif #if !__has_include() #define BOOST_NO_CXX23_HDR_GENERATOR #endif #if !__has_include() #define BOOST_NO_CXX23_HDR_MDSPAN #endif #if !__has_include() #define BOOST_NO_CXX23_HDR_PRINT #endif #if !__has_include() #define BOOST_NO_CXX23_HDR_SPANSTREAM #endif #if !__has_include() #define BOOST_NO_CXX23_HDR_STACKTRACE #endif #if !__has_include() #define BOOST_NO_CXX23_HDR_STDFLOAT #endif // more #if defined(__cpp_inline_variables) #define BOOST_INLINE_STATIC_CONSTEXPR inline BOOST_STATIC_CONSTEXPR #else #define BOOST_INLINE_STATIC_CONSTEXPR BOOST_STATIC_CONSTEXPR #endif #if defined(__cpp_consteval) || defined(__cpp_constexpr) #if defined(__cpp_consteval) #define BOOST_CONSTEVAL_OR_CONSTEXPR consteval #else #define BOOST_CONSTEVAL_OR_CONSTEXPR constexpr #endif #else #define BOOST_CONSTEVAL_OR_CONSTEXPR const #endif #endif // BOOST_CONFIG_MORE_HPP