forked from boostorg/system
The constexpr workarounds are no longer needed
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// BOOST_SYSTEM_NOEXCEPT
|
// BOOST_SYSTEM_NOEXCEPT
|
||||||
// Retained for backward compatibility only
|
// Retained for backward compatibility
|
||||||
|
|
||||||
#define BOOST_SYSTEM_NOEXCEPT BOOST_NOEXCEPT
|
#define BOOST_SYSTEM_NOEXCEPT BOOST_NOEXCEPT
|
||||||
|
|
||||||
@@ -27,22 +27,6 @@
|
|||||||
# define BOOST_SYSTEM_HAS_CONSTEXPR
|
# define BOOST_SYSTEM_HAS_CONSTEXPR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__GNUC__) && (__GNUC__ == 7 && __GNUC_MINOR__ < 4) && __cplusplus >= 201700L
|
|
||||||
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83835
|
|
||||||
# undef BOOST_SYSTEM_HAS_CONSTEXPR
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__clang__) && defined(_MSC_VER) && defined(_CPPLIB_VER)
|
|
||||||
// Clang on Windows with MSVC headers, the constructor of std::error_category
|
|
||||||
// is not constexpr at least up to VS2017 15.7.x (_MSVC_STL_UPDATE 201803)
|
|
||||||
# undef BOOST_SYSTEM_HAS_CONSTEXPR
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__clang__) && defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 40900
|
|
||||||
// The constructor of std::error_category is not constexpr in libstdc++ 4.8
|
|
||||||
# undef BOOST_SYSTEM_HAS_CONSTEXPR
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(BOOST_SYSTEM_HAS_CONSTEXPR)
|
#if defined(BOOST_SYSTEM_HAS_CONSTEXPR)
|
||||||
# define BOOST_SYSTEM_CONSTEXPR constexpr
|
# define BOOST_SYSTEM_CONSTEXPR constexpr
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user