From d79e38e5d5aebee3d6dcb7831b95c1dd12745d40 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 21 Sep 2018 17:07:51 +0300 Subject: [PATCH] Remove noexcept from conversions to std::error_code/condition; they allocate 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 684cd47..f5a4918 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -483,7 +483,7 @@ public: #if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - operator std::error_condition () const BOOST_NOEXCEPT + operator std::error_condition () const { return std::error_condition( value(), category() ); } @@ -610,7 +610,7 @@ public: #if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - operator std::error_code () const BOOST_NOEXCEPT + operator std::error_code () const { return std::error_code( value(), category() ); }