diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 83fd17b..c70ea04 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -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