1 #ifndef BOOST_SYSTEM_ERRC_HPP_INCLUDED
2 #define BOOST_SYSTEM_ERRC_HPP_INCLUDED
4 // Copyright Beman Dawes 2006, 2007
5 // Copyright Christoper Kohlhoff 2007
6 // Copyright Peter Dimov 2017, 2018, 2020
8 // Distributed under the Boost Software License, Version 1.0. (See accompanying
9 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 // See library home page at http://www.boost.org/libs/system
13 #include <boost/system/detail/errc.hpp>
14 #include <boost/system/detail/error_code.hpp>
15 #include <boost/system/detail/error_condition.hpp>
16 #include <boost/system/detail/generic_category.hpp>
17 #include <boost/system/detail/error_category_impl.hpp>
18 #include <boost/system/detail/config.hpp>
19 #include <boost/config.hpp>
27 // make_* functions for errc::errc_t
32 // explicit conversion:
33 BOOST_SYSTEM_CONSTEXPR inline error_code make_error_code( errc_t e ) BOOST_NOEXCEPT
35 return error_code( e, generic_category() );
38 // implicit conversion:
39 BOOST_SYSTEM_CONSTEXPR inline error_condition make_error_condition( errc_t e ) BOOST_NOEXCEPT
41 return error_condition( e, generic_category() );
50 #endif // #ifndef BOOST_SYSTEM_ERRC_HPP_INCLUDED