error.hpp 862 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 BHO_BEAST_WEBSOCKET_IMPL_ERROR_HPP
  10. #define BHO_BEAST_WEBSOCKET_IMPL_ERROR_HPP
  11. namespace std {
  12. template<>
  13. struct is_error_code_enum<::bho::beast::websocket::error>
  14. {
  15. static bool const value = true;
  16. };
  17. template<>
  18. struct is_error_condition_enum<::bho::beast::websocket::condition>
  19. {
  20. static bool const value = true;
  21. };
  22. } // bho
  23. namespace bho {
  24. namespace beast {
  25. namespace websocket {
  26. BHO_BEAST_DECL
  27. error_code
  28. make_error_code(error e);
  29. BHO_BEAST_DECL
  30. error_condition
  31. make_error_condition(condition c);
  32. } // websocket
  33. } // beast
  34. } // bho
  35. #endif