2017-07-20 08:01:46 -07:00
|
|
|
//
|
2019-02-21 07:00:31 -08:00
|
|
|
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
|
2017-07-20 08:01:46 -07:00
|
|
|
//
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
//
|
2017-07-20 13:40:34 -07:00
|
|
|
// Official repository: https://github.com/boostorg/beast
|
|
|
|
//
|
2017-07-20 08:01:46 -07:00
|
|
|
|
2019-01-19 07:24:00 -08:00
|
|
|
#ifndef BOOST_BEAST_WEBSOCKET_IMPL_ERROR_HPP
|
|
|
|
#define BOOST_BEAST_WEBSOCKET_IMPL_ERROR_HPP
|
2017-07-20 08:01:46 -07:00
|
|
|
|
2016-10-04 18:00:11 -04:00
|
|
|
namespace boost {
|
2019-02-22 13:06:43 -08:00
|
|
|
namespace system {
|
|
|
|
template<>
|
|
|
|
struct is_error_code_enum<::boost::beast::websocket::error>
|
2018-01-01 13:13:43 -08:00
|
|
|
{
|
2019-02-22 13:06:43 -08:00
|
|
|
static bool const value = true;
|
|
|
|
};
|
|
|
|
template<>
|
|
|
|
struct is_error_condition_enum<::boost::beast::websocket::condition>
|
2018-01-01 17:49:19 -08:00
|
|
|
{
|
2019-02-22 13:06:43 -08:00
|
|
|
static bool const value = true;
|
|
|
|
};
|
|
|
|
} // system
|
|
|
|
} // boost
|
2018-01-01 13:13:43 -08:00
|
|
|
|
2019-02-22 13:06:43 -08:00
|
|
|
namespace boost {
|
|
|
|
namespace beast {
|
|
|
|
namespace websocket {
|
2018-01-01 17:49:19 -08:00
|
|
|
|
2019-01-19 07:24:00 -08:00
|
|
|
BOOST_BEAST_DECL
|
2018-01-01 17:49:19 -08:00
|
|
|
error_code
|
2019-02-22 13:06:43 -08:00
|
|
|
make_error_code(error e);
|
2018-01-01 17:49:19 -08:00
|
|
|
|
2019-01-19 07:24:00 -08:00
|
|
|
BOOST_BEAST_DECL
|
2018-01-01 17:49:19 -08:00
|
|
|
error_condition
|
2019-02-22 13:06:43 -08:00
|
|
|
make_error_condition(condition c);
|
2018-01-01 17:49:19 -08:00
|
|
|
|
2017-07-20 08:01:46 -07:00
|
|
|
} // websocket
|
|
|
|
} // beast
|
2017-07-20 13:40:34 -07:00
|
|
|
} // boost
|
2017-07-20 08:01:46 -07:00
|
|
|
|
|
|
|
#endif
|