Skip to content

Commit 1c8da7c

Browse files
committed
Fix message_t::gets.
- Add a missing underscore. - Remove const as msg is passed by reference.
1 parent 570ff93 commit 1c8da7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zmq.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,9 @@ namespace zmq
372372
return a == b;
373373
}
374374

375-
inline const char* gets(const char *property_) const
375+
inline const char* gets(const char *property_)
376376
{
377-
const char* value = zmq_msg_gets (&msg, property);
377+
const char* value = zmq_msg_gets (&msg, property_);
378378
if (value == NULL)
379379
throw error_t ();
380380
return value;

0 commit comments

Comments
 (0)