Skip to content

Commit

Permalink
Removed redundant std::ref causing problems with Boost 1.70 (fixes #3990
Browse files Browse the repository at this point in the history
)

The asio socket ctor already takes a reference.
  • Loading branch information
Vultraz committed Jul 14, 2019
1 parent 9900ed7 commit 9d0e3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server_base.cpp
Expand Up @@ -65,7 +65,7 @@ void server_base::start_server()

void server_base::serve()
{
socket_ptr socket = std::make_shared<boost::asio::ip::tcp::socket>(std::ref(io_service_));
socket_ptr socket = std::make_shared<boost::asio::ip::tcp::socket>(io_service_);
acceptor_.async_accept(*socket, std::bind(&server_base::accept_connection, this, _1, socket));
}

Expand Down

0 comments on commit 9d0e3ba

Please sign in to comment.