cppzmq icon indicating copy to clipboard operation
cppzmq copied to clipboard

can't use std::vector<zmq::message_t>

Open adadKKKX opened this issue 3 years ago • 1 comments

std::vector<zmq::message_t> vMsg;
// like this 

my vs2019(win10 ) will report error

image

#ifdef ZMQ_CPP11
ZMQ_DEFINE_INTEGRAL_OPT(ZMQ_TYPE, socket_type, socket_type);
#endif // ZMQ_CPP11
+ E0757 

is it normal? sir

adadKKKX avatar Apr 24 '22 02:04 adadKKKX

You can move it push_back(std::move(message)) or do explicit copy.

gummif avatar May 09 '22 15:05 gummif