Skip to content

Commit 0cbd37e

Browse files
committed
Change to lambda
1 parent 9bc266e commit 0cbd37e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/include/cpprest/details/http_server_asio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class connection
8686
boost::asio::ssl::context ssl_context(boost::asio::ssl::context::sslv23);
8787
ssl_context_callback(ssl_context);
8888
m_ssl_stream = utility::details::make_unique<boost::asio::ssl::stream<boost::asio::ip::tcp::socket&>>(*m_socket, ssl_context);
89-
m_ssl_stream->async_handshake(boost::asio::ssl::stream_base::server, boost::bind(&connection::start_request_response, this));
89+
m_ssl_stream->async_handshake(boost::asio::ssl::stream_base::server, [this](const boost::system::error_code&) { this->start_request_response(); });
9090
}
9191
else
9292
{

0 commit comments

Comments
 (0)