mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-19 08:46:45 +01:00
Make single parameter constructors explicit
This commit is contained in:
parent
90d870b836
commit
72162cecdd
4
zmq.hpp
4
zmq.hpp
@ -108,7 +108,7 @@ namespace zmq
|
||||
throw error_t ();
|
||||
}
|
||||
|
||||
inline message_t (size_t size_)
|
||||
inline explicit message_t (size_t size_)
|
||||
{
|
||||
int rc = zmq_msg_init_size (&msg, size_);
|
||||
if (rc != 0)
|
||||
@ -221,7 +221,7 @@ namespace zmq
|
||||
|
||||
public:
|
||||
|
||||
inline context_t (int io_threads_)
|
||||
inline explicit context_t (int io_threads_)
|
||||
{
|
||||
ptr = zmq_init (io_threads_);
|
||||
if (ptr == NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user