Skip to content

Commit

Permalink
Merge pull request #10 from ricnewton/explicit-constructors
Browse files Browse the repository at this point in the history
Make single parameter constructors explicit
  • Loading branch information
hintjens committed Jan 5, 2013
2 parents 052c656 + 72162ce commit 127c255
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 @@ -114,7 +114,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 @@ -227,7 +227,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 127c255

Please sign in to comment.