Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:09:47

0001 #ifndef BOOST_SYSTEM_ERRC_HPP_INCLUDED
0002 #define BOOST_SYSTEM_ERRC_HPP_INCLUDED
0003 
0004 // Copyright Beman Dawes 2006, 2007
0005 // Copyright Christoper Kohlhoff 2007
0006 // Copyright Peter Dimov 2017, 2018, 2020
0007 //
0008 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0009 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0010 //
0011 // See library home page at http://www.boost.org/libs/system
0012 
0013 #include <boost/system/detail/errc.hpp>
0014 #include <boost/system/detail/error_code.hpp>
0015 #include <boost/system/detail/error_condition.hpp>
0016 #include <boost/system/detail/generic_category.hpp>
0017 #include <boost/system/detail/error_category_impl.hpp>
0018 #include <boost/system/detail/config.hpp>
0019 #include <boost/assert/source_location.hpp>
0020 #include <boost/config.hpp>
0021 
0022 namespace boost
0023 {
0024 
0025 namespace system
0026 {
0027 
0028 // make_* functions for errc::errc_t
0029 
0030 namespace errc
0031 {
0032 
0033 // explicit conversion:
0034 BOOST_SYSTEM_CONSTEXPR inline error_code make_error_code( errc_t e ) noexcept
0035 {
0036     return error_code( e, generic_category() );
0037 }
0038 
0039 // explicit conversion:
0040 inline error_code make_error_code( errc_t e, boost::source_location const * loc ) noexcept
0041 {
0042     return error_code( e, generic_category(), loc );
0043 }
0044 
0045 // implicit conversion:
0046 BOOST_SYSTEM_CONSTEXPR inline error_condition make_error_condition( errc_t e ) noexcept
0047 {
0048     return error_condition( e, generic_category() );
0049 }
0050 
0051 } // namespace errc
0052 
0053 } // namespace system
0054 
0055 } // namespace boost
0056 
0057 #endif // #ifndef BOOST_SYSTEM_ERRC_HPP_INCLUDED