]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/system/errc.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / system / errc.hpp
1 #ifndef BOOST_SYSTEM_ERRC_HPP_INCLUDED
2 #define BOOST_SYSTEM_ERRC_HPP_INCLUDED
3
4 // Copyright Beman Dawes 2006, 2007
5 // Copyright Christoper Kohlhoff 2007
6 // Copyright Peter Dimov 2017, 2018, 2020
7 //
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)
10 //
11 // See library home page at http://www.boost.org/libs/system
12
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>
20
21 namespace boost
22 {
23
24 namespace system
25 {
26
27 // make_* functions for errc::errc_t
28
29 namespace errc
30 {
31
32 // explicit conversion:
33 BOOST_SYSTEM_CONSTEXPR inline error_code make_error_code( errc_t e ) BOOST_NOEXCEPT
34 {
35 return error_code( e, generic_category() );
36 }
37
38 // implicit conversion:
39 BOOST_SYSTEM_CONSTEXPR inline error_condition make_error_condition( errc_t e ) BOOST_NOEXCEPT
40 {
41 return error_condition( e, generic_category() );
42 }
43
44 } // namespace errc
45
46 } // namespace system
47
48 } // namespace boost
49
50 #endif // #ifndef BOOST_SYSTEM_ERRC_HPP_INCLUDED