Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:09

0001 // Copyright (c) 2022 Klemens D. Morgenstern
0002 //
0003 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0004 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 #ifndef BOOST_PROCESS_V2_DETAIL_IMPL_THROW_ERROR_IPP
0006 #define BOOST_PROCESS_V2_DETAIL_IMPL_THROW_ERROR_IPP
0007 
0008 #include <boost/process/v2/detail/config.hpp>
0009 #include <boost/process/v2/detail/throw_error.hpp>
0010 #include <boost/process/v2/detail/throw_exception.hpp>
0011 
0012 BOOST_PROCESS_V2_BEGIN_NAMESPACE
0013 namespace detail
0014 {
0015 
0016 void do_throw_error(const error_code& err)
0017 {
0018     system_error e(err);
0019     throw_exception(e);
0020 }
0021 
0022 void do_throw_error(const error_code& err, const char* location)
0023 {
0024     system_error e(err, location);
0025     throw_exception(e);
0026 }
0027 
0028 }
0029 BOOST_PROCESS_V2_END_NAMESPACE
0030 
0031 #endif //BOOST_PROCESS_V2_DETAIL_IMPL_THROW_ERROR_IPP