diff --git a/include/beauty/websocket_client.hpp b/include/beauty/websocket_client.hpp index 2ea12dd..d7e48fd 100644 --- a/include/beauty/websocket_client.hpp +++ b/include/beauty/websocket_client.hpp @@ -70,7 +70,7 @@ class websocket_client : public std::enable_shared_from_this { // Make the connection on the IP address we get from a lookup beast::get_lowest_layer(_websocket).async_connect( results, - [me = this->shared_from_this()](auto ec, auto&& ep) { + [me = this->shared_from_this()](auto ec, asio::ip::tcp::resolver::results_type::endpoint_type ep) { me->on_connect(ec, ep); }); }