mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-04-27 02:16:19 +02:00
Merge pull request #43 from tolchz/master
Add an rvalue overload for socket_t::send
This commit is contained in:
commit
ac705f6047
7
zmq.hpp
7
zmq.hpp
@ -441,6 +441,13 @@ namespace zmq
|
||||
throw error_t ();
|
||||
}
|
||||
|
||||
#ifdef ZMQ_HAS_RVALUE_REFS
|
||||
inline bool send (message_t &&msg_, int flags_ = 0)
|
||||
{
|
||||
return send(msg_, flags_);
|
||||
}
|
||||
#endif
|
||||
|
||||
inline size_t recv (void *buf_, size_t len_, int flags_ = 0)
|
||||
{
|
||||
int nbytes = zmq_recv (ptr, buf_, len_, flags_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user