Update all references to <system_error> to refer to Boost.System

This commit is contained in:
Peter Dimov committed 2021-09-16 19:16:30 +03:00
1 parent ae77563039
commit fe3d0e6c14
10 files changed
+74 -80

No files matched your search

+6 -7
View File
@@ -5,11 +5,14 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/system/errc.hpp>
#include <boost/system/system_error.hpp>
#include <boost/system/detail/error_code.hpp>
#include <boost/system/detail/error_category_impl.hpp>
#include <boost/variant2/variant.hpp>
#include <boost/throw_exception.hpp>
#include <boost/assert.hpp>
#include <boost/config.hpp>
#include <system_error>
#include <type_traits>
#include <utility>
#include <iosfwd>
@@ -21,17 +24,13 @@ namespace boost
namespace system
{
class error_code;
// throw_exception_from_error_code
BOOST_NORETURN inline void throw_exception_from_error_code( std::error_code const & e )
BOOST_NORETURN inline void throw_exception_from_error_code( error_code const & e )
{
boost::throw_exception( std::system_error( e ) );
boost::throw_exception( system_error( e ) );
}
BOOST_NORETURN inline void throw_exception_from_error_code( error_code const & e );
// in_place_*
using in_place_value_t = variant2::in_place_index_t<0>;