error.hpp 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot 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/beast
  8. //
  9. #ifndef BOOST_BEAST_IMPL_ERROR_HPP
  10. #define BOOST_BEAST_IMPL_ERROR_HPP
  11. #include <type_traits>
  12. namespace boost {
  13. namespace system {
  14. template<>
  15. struct is_error_code_enum<::boost::beast::error>
  16. {
  17. static bool const value = true;
  18. };
  19. template<>
  20. struct is_error_condition_enum<::boost::beast::condition>
  21. {
  22. static bool const value = true;
  23. };
  24. } // system
  25. } // boost
  26. namespace boost {
  27. namespace beast {
  28. BOOST_BEAST_DECL
  29. error_code
  30. make_error_code(error e);
  31. BOOST_BEAST_DECL
  32. error_condition
  33. make_error_condition(condition c);
  34. } // beast
  35. } // boost
  36. #endif