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
0005
0006
0007
0008
0009
0010
0011
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
0029
0030 namespace errc
0031 {
0032
0033
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
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
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 }
0052
0053 }
0054
0055 }
0056
0057 #endif