]>
Commit | Line | Data |
---|---|---|
20effc67 TL |
1 | // |
2 | // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com) | |
3 | // | |
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | // | |
7 | // Official repository: https://github.com/boostorg/json | |
8 | // | |
9 | ||
10 | #ifndef BOOST_JSON_IMPL_ERROR_HPP | |
11 | #define BOOST_JSON_IMPL_ERROR_HPP | |
12 | ||
13 | #include <type_traits> | |
14 | ||
20effc67 TL |
15 | namespace boost { |
16 | namespace system { | |
17 | template<> | |
18 | struct is_error_code_enum< ::boost::json::error > | |
19 | { | |
20 | static bool const value = true; | |
21 | }; | |
22 | template<> | |
23 | struct is_error_condition_enum< ::boost::json::condition > | |
24 | { | |
25 | static bool const value = true; | |
26 | }; | |
27 | } // system | |
28 | } // boost | |
29 | ||
20effc67 TL |
30 | namespace std { |
31 | template<> | |
32 | struct is_error_code_enum< ::boost::json::error > | |
33 | { | |
34 | static bool const value = true; | |
35 | }; | |
36 | template<> | |
37 | struct is_error_condition_enum< ::boost::json::condition > | |
38 | { | |
39 | static bool const value = true; | |
40 | }; | |
41 | } // std | |
42 | ||
20effc67 TL |
43 | BOOST_JSON_NS_BEGIN |
44 | ||
45 | BOOST_JSON_DECL | |
46 | error_code | |
47 | make_error_code(error e); | |
48 | ||
49 | BOOST_JSON_DECL | |
50 | error_condition | |
51 | make_error_condition(condition c); | |
52 | ||
53 | BOOST_JSON_NS_END | |
54 | ||
55 | #endif |