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