12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #ifndef BOOST_MATH_CCMATH_DETAIL_CONFIG
- #define BOOST_MATH_CCMATH_DETAIL_CONFIG
- #include <cmath>
- #include <type_traits>
- #include <limits>
- #include <boost/math/tools/is_constant_evaluated.hpp>
- #include <boost/math/tools/is_standalone.hpp>
- #ifndef BOOST_MATH_STANDALONE
- #include <boost/config.hpp>
- #ifdef BOOST_NO_CXX17_IF_CONSTEXPR
- # define BOOST_MATH_NO_CCMATH
- #endif
- #else
- #if defined(_MSC_VER)
- #if defined(_MSVC_LANG) && (_MSVC_LANG < 201703)
- # define BOOST_MATH_NO_CCMATH
- #endif
- #else
- #if (__cplusplus < 201703)
- # define BOOST_MATH_NO_CCMATH
- #endif
- #endif
- #endif
- #ifndef _MSC_VER
- #if (__cpp_lib_bool_constant < 201505L) && !defined(BOOST_MATH_NO_CCMATH)
- # define BOOST_MATH_NO_CCMATH
- #endif
- #endif
- #endif
|