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