• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // error_code.hpp
3 // ~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_ERROR_CODE_HPP
12 #define ASIO_ERROR_CODE_HPP
13 
14 
15 #include "asio/detail/config.hpp"
16 
17 # include <system_error>
18 
19 #include "asio/detail/push_options.hpp"
20 
21 namespace asio {
22 
23 
24 typedef std::error_category error_category;
25 
26 
27 /// Returns the error category used for the system errors produced by asio.
28 extern ASIO_DECL const error_category& system_category();
29 
30 
31 typedef std::error_code error_code;
32 
33 
34 } // namespace asio
35 
36 #include "asio/detail/pop_options.hpp"
37 
38 # include "asio/impl/error_code.ipp"
39 
40 #endif // ASIO_ERROR_CODE_HPP
41