diff --git a/asio/include/asio/detail/reactive_socket_connector_service.hpp b/asio/include/asio/detail/reactive_socket_connector_service.hpp index 7d8c787d..40b8d3ff 100644 --- a/asio/include/asio/detail/reactive_socket_connector_service.hpp +++ b/asio/include/asio/detail/reactive_socket_connector_service.hpp @@ -235,18 +235,16 @@ public: peer.set_impl(sock.release()); } - template + template class connect_handler { public: connect_handler(impl_type impl, socket_type new_socket, Demuxer& demuxer, - basic_stream_socket& peer, - const Address& peer_address, Handler handler) + basic_stream_socket& peer, Handler handler) : impl_(impl), new_socket_(new_socket), demuxer_(demuxer), peer_(peer), - peer_address_(peer_address), handler_(handler) { } @@ -310,7 +308,6 @@ public: socket_type new_socket_; Demuxer& demuxer_; basic_stream_socket& peer_; - Address peer_address_; Handler handler_; }; @@ -388,8 +385,8 @@ public: impl->add_socket(new_socket.get()); demuxer_.work_started(); reactor_.start_write_op(new_socket.get(), - connect_handler( - impl, new_socket.get(), demuxer_, peer, peer_address, handler)); + connect_handler( + impl, new_socket.get(), demuxer_, peer, handler)); new_socket.release(); } else