error.hpp 676 B

1234567891011121314151617181920212223242526272829303132333435
  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_HTTP_IMPL_ERROR_HPP
  10. #define BHO_BEAST_HTTP_IMPL_ERROR_HPP
  11. #include <type_traits>
  12. namespace std {
  13. template<>
  14. struct is_error_code_enum<::bho::beast::http::error>
  15. {
  16. static bool const value = true;
  17. };
  18. } // bho
  19. namespace bho {
  20. namespace beast {
  21. namespace http {
  22. BHO_BEAST_DECL
  23. error_code
  24. make_error_code(error ev);
  25. } // http
  26. } // beast
  27. } // bho
  28. #endif