mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-10-16 07:23:46 +02:00
Fix message_t::gets.
- Add a missing underscore. - Remove const as msg is passed by reference.
This commit is contained in:
4
zmq.hpp
4
zmq.hpp
@@ -372,9 +372,9 @@ namespace zmq
|
|||||||
return a == b;
|
return a == b;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline const char* gets(const char *property_) const
|
inline const char* gets(const char *property_)
|
||||||
{
|
{
|
||||||
const char* value = zmq_msg_gets (&msg, property);
|
const char* value = zmq_msg_gets (&msg, property_);
|
||||||
if (value == NULL)
|
if (value == NULL)
|
||||||
throw error_t ();
|
throw error_t ();
|
||||||
return value;
|
return value;
|
||||||
|
Reference in New Issue
Block a user