zeromq / cppzmq

Header-only C++ binding for libzmq
http://www.zeromq.org
MIT License
1.93k stars 757 forks source link

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

Closed adadKKKX closed 1 year ago

adadKKKX commented 2 years ago
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

gummif commented 2 years ago

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