From 4b90524729a50e644a45c26505171fdae27e282d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 1 Mar 2023 05:18:23 +0200 Subject: [PATCH] Disable the constexpr constructors on GCC 4.7 --- include/boost/system/detail/error_category.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/boost/system/detail/error_category.hpp b/include/boost/system/detail/error_category.hpp index 4a7e97d..acc3494 100644 --- a/include/boost/system/detail/error_category.hpp +++ b/include/boost/system/detail/error_category.hpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -116,11 +117,18 @@ protected: #endif - BOOST_CONSTEXPR error_category() BOOST_NOEXCEPT: id_( 0 ), stdcat_(), sc_init_() +#if !BOOST_WORKAROUND(BOOST_GCC, < 40800) + BOOST_CONSTEXPR +#endif + error_category() BOOST_NOEXCEPT: id_( 0 ), stdcat_(), sc_init_() { } - explicit BOOST_CONSTEXPR error_category( boost::ulong_long_type id ) BOOST_NOEXCEPT: id_( id ), stdcat_(), sc_init_() + explicit +#if !BOOST_WORKAROUND(BOOST_GCC, < 40800) + BOOST_CONSTEXPR +#endif + error_category( boost::ulong_long_type id ) BOOST_NOEXCEPT: id_( id ), stdcat_(), sc_init_() { }