Examples use bind_front_handler

This commit is contained in:
Vinnie Falco
2019-02-14 17:28:54 -08:00
parent 92add2afa6
commit 18447553ca
26 changed files with 248 additions and 397 deletions
@@ -60,10 +60,9 @@ run(http::request<Body, http::basic_fields<Allocator>> req)
// Accept the websocket handshake
ws_.async_accept(
req,
std::bind(
beast::bind_front_handler(
&websocket_session::on_accept,
shared_from_this(),
std::placeholders::_1));
shared_from_this()));
}
#endif