Skip to content

Commit b89381b

Browse files
committed
Remove duplicated Boost.System aliases
1 parent 2ed84a6 commit b89381b

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

include/boost/json/error.hpp

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -11,51 +11,10 @@
1111
#define BOOST_JSON_ERROR_HPP
1212

1313
#include <boost/json/detail/config.hpp>
14-
#include <boost/system/error_code.hpp>
15-
#include <boost/system/system_error.hpp>
14+
#include <boost/json/system_error.hpp>
1615

1716
BOOST_JSON_NS_BEGIN
1817

19-
#ifdef BOOST_JSON_DOCS
20-
21-
/** The type of error code used by the library.
22-
23-
Alias for `boost::system::error_code`.
24-
*/
25-
using error_code = __see_below__;
26-
27-
/** The type of error category used by the library.
28-
29-
Alias for `boost::system::error_category`.
30-
*/
31-
using error_category = __see_below__;
32-
33-
/** The type of error condition used by the library.
34-
35-
Alias for `boost::system::error_condition`.
36-
*/
37-
using error_condition = __see_below__;
38-
39-
/** The type of system error thrown by the library.
40-
41-
Alias for `boost::system::system_error`.
42-
*/
43-
using system_error = __see_below__;
44-
45-
/// Returns the generic error category used by the library.
46-
error_category const&
47-
generic_category();
48-
49-
#else
50-
51-
using error_code = boost::system::error_code;
52-
using error_category = boost::system::error_category;
53-
using error_condition = boost::system::error_condition;
54-
using system_error = boost::system::system_error;
55-
using boost::system::generic_category;
56-
57-
#endif
58-
5918
/** Error codes returned by JSON operations
6019
6120
*/

0 commit comments

Comments
 (0)