Use bind_front_handler:

The implementation uses bind_front_handler to reduce the
resources consumed when instantiating templates during
compilation.
This commit is contained in:
Vinnie Falco
2018-11-21 11:29:10 -08:00
parent d581bcc348
commit 15dd535c24
12 changed files with 29 additions and 25 deletions
+2 -1
View File
@@ -424,7 +424,8 @@ operator()(boost::beast::error_code ec, std::size_t bytes_transferred)
BOOST_ASIO_CORO_YIELD
boost::asio::post(
stream_.get_executor(),
beast::bind_handler(std::move(*this), ec, 0));
beast::bind_front_handler(
std::move(*this), ec, 0));
}
else
{