error.hpp 723 B

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