diff options
Diffstat (limited to 'src/syncServer.cpp')
-rw-r--r-- | src/syncServer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/syncServer.cpp b/src/syncServer.cpp index 1e6e352..21302c2 100644 --- a/src/syncServer.cpp +++ b/src/syncServer.cpp @@ -125,7 +125,11 @@ void SyncServer::start_accept() std::list<AcceptorsElement>::iterator it = acceptors_.begin(); for(; it != acceptors_.end(); ++it) { if(!it->started_) { +#if BOOST_VERSION >= 107000 + SyncTcpConnection::pointer new_connection = SyncTcpConnection::create(it->acceptor_->get_executor()); +#else SyncTcpConnection::pointer new_connection = SyncTcpConnection::create(it->acceptor_->get_io_service()); +#endif conns_.push_back(new_connection); it->acceptor_->async_accept(new_connection->socket(), boost::bind(&SyncServer::handle_accept, this, new_connection, boost::asio::placeholders::error, it)); |