Disable constexpr on Clang/libstdc++4.8

This commit is contained in:
Peter Dimov
2018-07-19 19:04:53 +03:00
parent 697c73ac57
commit 3c59cea7ef

View File

@ -54,6 +54,11 @@
# 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)
# define BOOST_SYSTEM_CONSTEXPR constexpr
#else