Problem: access to moved object

Solution: use move target instead
This commit is contained in:
Simon Giesecke 2019-03-22 09:47:10 -04:00
parent 740780293a
commit 2f40d21618

View File

@ -136,7 +136,7 @@ zmq::socks_request_t::socks_request_t (uint8_t command_,
hostname (ZMQ_MOVE (hostname_)), hostname (ZMQ_MOVE (hostname_)),
port (port_) port (port_)
{ {
zmq_assert (hostname_.size () <= UINT8_MAX); zmq_assert (hostname.size () <= UINT8_MAX);
} }
zmq::socks_request_encoder_t::socks_request_encoder_t () : zmq::socks_request_encoder_t::socks_request_encoder_t () :