Remove placeholders (API Change)

This commit is contained in:
Vinnie Falco
2017-05-10 13:08:11 -07:00
parent 4799fc15a1
commit 7d8e40537a
13 changed files with 20 additions and 67 deletions

View File

@@ -8,7 +8,6 @@
#ifndef WEBSOCKET_ASYNC_ECHO_SERVER_HPP
#define WEBSOCKET_ASYNC_ECHO_SERVER_HPP
#include <beast/core/placeholders.hpp>
#include <beast/core/multi_buffer.hpp>
#include <beast/websocket/stream.hpp>
#include <boost/lexical_cast.hpp>
@@ -202,7 +201,7 @@ public:
return fail("listen", ec);
acceptor_.async_accept(sock_, ep_,
std::bind(&async_echo_server::on_accept, this,
beast::asio::placeholders::error));
std::placeholders::_1));
}
private:
@@ -351,7 +350,7 @@ private:
peer{*this, ep_, std::move(sock_)};
acceptor_.async_accept(sock_, ep_,
std::bind(&async_echo_server::on_accept, this,
beast::asio::placeholders::error));
std::placeholders::_1));
}
};