Use new post() in serialization example.
This commit is contained in:
parent
45dcb33c2e
commit
fe5470f4f3
@ -65,7 +65,7 @@ public:
|
|||||||
{
|
{
|
||||||
// Something went wrong, inform the caller.
|
// Something went wrong, inform the caller.
|
||||||
asio::error_code error(asio::error::invalid_argument);
|
asio::error_code error(asio::error::invalid_argument);
|
||||||
socket_.get_io_context().post(boost::bind(handler, error));
|
asio::post(socket_.get_executor(), boost::bind(handler, error));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
outbound_header_ = header_stream.str();
|
outbound_header_ = header_stream.str();
|
||||||
|
Loading…
Reference in New Issue
Block a user