Merge pull request #328 from xiphon/fix-recv-flags-default

Fix 'recv' function 'flags_' argument default value
This commit is contained in:
Simon Giesecke
2019-07-24 14:42:31 +02:00
committed by GitHub
2 changed files with 20 additions and 5 deletions

View File

@@ -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)