Remove noexcept from conversions to std::error_code/condition; they allocate and can throw

This commit is contained in:
Peter Dimov
2018-09-21 17:07:51 +03:00
parent a4e700ecf4
commit d79e38e5d5

View File

@ -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() );
}