forked from boostorg/system
Remove noexcept from conversions to std::error_code/condition; they allocate and can throw
This commit is contained in:
@ -483,7 +483,7 @@ public:
|
|||||||
|
|
||||||
#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
|
#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() );
|
return std::error_condition( value(), category() );
|
||||||
}
|
}
|
||||||
@ -610,7 +610,7 @@ public:
|
|||||||
|
|
||||||
#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
|
#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() );
|
return std::error_code( value(), category() );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user