forked from boostorg/system
Add throw_exception_from_error overload for std::error_code
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <iosfwd>
|
||||
#include <system_error>
|
||||
|
||||
//
|
||||
|
||||
@@ -31,6 +32,11 @@ BOOST_NORETURN BOOST_NOINLINE inline void throw_exception_from_error( error_code
|
||||
boost::throw_exception( system_error( e ) );
|
||||
}
|
||||
|
||||
BOOST_NORETURN BOOST_NOINLINE inline void throw_exception_from_error( std::error_code const & e )
|
||||
{
|
||||
boost::throw_exception( std::system_error( e ) );
|
||||
}
|
||||
|
||||
// in_place_*
|
||||
|
||||
using in_place_value_t = variant2::in_place_index_t<0>;
|
||||
|
||||
Reference in New Issue
Block a user