Remove placeholders (API Change)

This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:16 -07:00
1 parent 4799fc15a1
commit 7d8e40537a
13 files changed
+20 -67

No files matched your search

+2 -3
View File
@@ -8,7 +8,6 @@
#ifndef WEBSOCKET_SYNC_ECHO_SERVER_HPP
#define WEBSOCKET_SYNC_ECHO_SERVER_HPP
#include <beast/core/placeholders.hpp>
#include <beast/core/multi_buffer.hpp>
#include <beast/websocket.hpp>
#include <boost/lexical_cast.hpp>
@@ -191,7 +190,7 @@ public:
return fail("listen", ec);
acceptor_.async_accept(sock_, ep_,
std::bind(&sync_echo_server::on_accept, this,
beast::asio::placeholders::error));
std::placeholders::_1));
thread_ = std::thread{[&]{ ios_.run(); }};
}
@@ -259,7 +258,7 @@ private:
std::thread{lambda{*this, ep_, std::move(sock_)}}.detach();
acceptor_.async_accept(sock_, ep_,
std::bind(&sync_echo_server::on_accept, this,
beast::asio::placeholders::error));
std::placeholders::_1));
}
void