forked from boostorg/system
Disable constexpr on Clang/libstdc++4.8
This commit is contained in:
1 parent
697c73ac57
commit
3c59cea7ef
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user