]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/json/impl/error.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / json / impl / error.hpp
CommitLineData
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
15namespace boost {
16namespace system {
17template<>
18struct is_error_code_enum< ::boost::json::error >
19{
20 static bool const value = true;
21};
22template<>
23struct is_error_condition_enum< ::boost::json::condition >
24{
25 static bool const value = true;
26};
27} // system
28} // boost
29
20effc67
TL
30namespace std {
31template<>
32struct is_error_code_enum< ::boost::json::error >
33{
34 static bool const value = true;
35};
36template<>
37struct is_error_condition_enum< ::boost::json::condition >
38{
39 static bool const value = true;
40};
41} // std
42
20effc67
TL
43BOOST_JSON_NS_BEGIN
44
45BOOST_JSON_DECL
46error_code
47make_error_code(error e);
48
49BOOST_JSON_DECL
50error_condition
51make_error_condition(condition c);
52
53BOOST_JSON_NS_END
54
55#endif