error.hpp 800 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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_TEST_IMPL_ERROR_HPP
  10. #define BOOST_BEAST_TEST_IMPL_ERROR_HPP
  11. #include <boost/beast/core/error.hpp>
  12. #include <boost/beast/core/string.hpp>
  13. #include <type_traits>
  14. namespace boost {
  15. namespace system {
  16. template<>
  17. struct is_error_code_enum<
  18. boost::beast::test::error>
  19. : std::true_type
  20. {
  21. };
  22. } // system
  23. } // boost
  24. namespace boost {
  25. namespace beast {
  26. namespace test {
  27. BOOST_BEAST_DECL
  28. error_code
  29. make_error_code(error e) noexcept;
  30. } // test
  31. } // beast
  32. } // boost
  33. #endif