Skip to content

Commit

Permalink
Make single parameter constructors explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
ricnewton committed Nov 6, 2012
1 parent 90d870b commit 72162ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 72162ce

Please sign in to comment.