From 6ac5f239992ebc03a7b8e7263f5ab53006cec6da Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 1 Mar 2023 03:36:07 +0200 Subject: [PATCH] Make error_category constructors unconditionally constexpr --- include/boost/system/detail/error_category.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/system/detail/error_category.hpp b/include/boost/system/detail/error_category.hpp index 40b65f4..4a7e97d 100644 --- a/include/boost/system/detail/error_category.hpp +++ b/include/boost/system/detail/error_category.hpp @@ -116,11 +116,11 @@ protected: #endif - BOOST_SYSTEM_CONSTEXPR error_category() BOOST_NOEXCEPT: id_( 0 ), stdcat_(), sc_init_() + BOOST_CONSTEXPR error_category() BOOST_NOEXCEPT: id_( 0 ), stdcat_(), sc_init_() { } - explicit BOOST_SYSTEM_CONSTEXPR error_category( boost::ulong_long_type id ) BOOST_NOEXCEPT: id_( id ), stdcat_(), sc_init_() + explicit BOOST_CONSTEXPR error_category( boost::ulong_long_type id ) BOOST_NOEXCEPT: id_( id ), stdcat_(), sc_init_() { }