From 6c1a76af6e466361593a194c27c02ad1b999910c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 20 Dec 2015 14:00:58 +0900 Subject: [PATCH] asio: Use std::move for remote_endpoint assignment --- src/asio_server_request_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asio_server_request_impl.cc b/src/asio_server_request_impl.cc index 915b03e8..64866fa2 100644 --- a/src/asio_server_request_impl.cc +++ b/src/asio_server_request_impl.cc @@ -59,7 +59,7 @@ const boost::asio::ip::tcp::endpoint &request_impl::remote_endpoint() const { } void request_impl::remote_endpoint(boost::asio::ip::tcp::endpoint ep) { - remote_ep_ = ep; + remote_ep_ = std::move(ep); } } // namespace server