forked from boostorg/beast
Fix compile error in websocket snippet
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
Version 105:
|
||||||
|
|
||||||
|
* Fix compile error in websocket snippet
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 104:
|
Version 104:
|
||||||
|
|
||||||
* Remove unused include
|
* Remove unused include
|
||||||
|
@@ -234,23 +234,20 @@ void echo(stream<boost::asio::ip::tcp::socket>& ws,
|
|||||||
|
|
||||||
//[ws_snippet_22
|
//[ws_snippet_22
|
||||||
|
|
||||||
struct custom_stream
|
struct custom_stream;
|
||||||
{
|
|
||||||
friend
|
|
||||||
void
|
|
||||||
teardown(
|
|
||||||
role_type role,
|
|
||||||
custom_stream& stream,
|
|
||||||
error_code& ec);
|
|
||||||
|
|
||||||
template<class TeardownHandler>
|
void
|
||||||
friend
|
teardown(
|
||||||
void
|
role_type role,
|
||||||
async_teardown(
|
custom_stream& stream,
|
||||||
role_type role,
|
error_code& ec);
|
||||||
custom_stream& stream,
|
|
||||||
TeardownHandler&& handler);
|
template<class TeardownHandler>
|
||||||
};
|
void
|
||||||
|
async_teardown(
|
||||||
|
role_type role,
|
||||||
|
custom_stream& stream,
|
||||||
|
TeardownHandler&& handler);
|
||||||
|
|
||||||
//]
|
//]
|
||||||
|
|
||||||
@@ -272,7 +269,7 @@ struct custom_wrapper
|
|||||||
void
|
void
|
||||||
teardown(
|
teardown(
|
||||||
role_type role,
|
role_type role,
|
||||||
custom_stream& stream,
|
custom_wrapper& stream,
|
||||||
error_code& ec)
|
error_code& ec)
|
||||||
{
|
{
|
||||||
using boost::beast::websocket::teardown;
|
using boost::beast::websocket::teardown;
|
||||||
@@ -284,7 +281,7 @@ struct custom_wrapper
|
|||||||
void
|
void
|
||||||
async_teardown(
|
async_teardown(
|
||||||
role_type role,
|
role_type role,
|
||||||
custom_stream& stream,
|
custom_wrapper& stream,
|
||||||
TeardownHandler&& handler)
|
TeardownHandler&& handler)
|
||||||
{
|
{
|
||||||
using boost::beast::websocket::async_teardown;
|
using boost::beast::websocket::async_teardown;
|
||||||
|
Reference in New Issue
Block a user