From 465e9e019e5e2107e6e48c67d58be1e4662491ba Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 17 Sep 2018 20:12:10 +0300 Subject: [PATCH] Remove noexcept from operator std::error_category const& (allocates and can throw) --- include/boost/system/error_code.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index c92a18e..c3b51f1 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -252,7 +252,7 @@ public: #if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - operator std::error_category const & () const BOOST_NOEXCEPT; + operator std::error_category const & () const; #endif }; @@ -831,7 +831,7 @@ inline boost::system::error_condition boost::system::detail::system_error_catego #include -inline boost::system::error_category::operator std::error_category const & () const BOOST_NOEXCEPT +inline boost::system::error_category::operator std::error_category const & () const { return boost::system::detail::to_std_category( *this ); }