Problem: argument is unnecessarily copied

Solution: move instead
This commit is contained in:
Simon Giesecke 2019-03-01 05:24:05 -05:00
parent 995e0a3a26
commit 0c363fbb76

View File

@ -556,7 +556,7 @@ void zmq::pipe_t::send_hwms_to_peer (int inhwm_, int outhwm_)
void zmq::pipe_t::set_endpoint_pair (zmq::endpoint_uri_pair_t endpoint_pair_)
{
_endpoint_pair = endpoint_pair_;
_endpoint_pair = ZMQ_MOVE (endpoint_pair_);
}
const zmq::endpoint_uri_pair_t &zmq::pipe_t::get_endpoint_pair () const