error.hpp 913 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_WEBSOCKET_IMPL_ERROR_HPP
  10. #define BOOST_BEAST_WEBSOCKET_IMPL_ERROR_HPP
  11. namespace boost {
  12. namespace system {
  13. template<>
  14. struct is_error_code_enum<::boost::beast::websocket::error>
  15. {
  16. static bool const value = true;
  17. };
  18. template<>
  19. struct is_error_condition_enum<::boost::beast::websocket::condition>
  20. {
  21. static bool const value = true;
  22. };
  23. } // system
  24. } // boost
  25. namespace boost {
  26. namespace beast {
  27. namespace websocket {
  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. } // websocket
  35. } // beast
  36. } // boost
  37. #endif