mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-10-20 22:31:34 +02:00
Merge pull request #328 from xiphon/fix-recv-flags-default
Fix 'recv' function 'flags_' argument default value
This commit is contained in:
6
zmq.hpp
6
zmq.hpp
@@ -1264,11 +1264,7 @@ public:
|
||||
#ifdef ZMQ_CPP11
|
||||
ZMQ_DEPRECATED("from 4.3.1, use recv taking a reference to message_t and recv_flags")
|
||||
#endif
|
||||
bool recv(message_t *msg_, int flags_
|
||||
#ifndef ZMQ_CPP11
|
||||
= 0
|
||||
#endif
|
||||
)
|
||||
bool recv(message_t *msg_, int flags_ = 0)
|
||||
{
|
||||
int nbytes = zmq_msg_recv(msg_->handle(), _handle, flags_);
|
||||
if (nbytes >= 0)
|
||||
|
Reference in New Issue
Block a user