Make single parameter constructors explicit

This commit is contained in:
Richard Newton 2012-11-06 18:24:39 +00:00
parent 90d870b836
commit 72162cecdd

View File

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