Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make single parameter constructors explicit #10

Merged
merged 1 commit into from
Jan 5, 2013

Conversation

ricnewton
Copy link
Contributor

Ensures we don't accidentally convert to int to message_t or context_t, for example:

void PrintMessage(const zmq::message_t& msg)
{
...
}

PrintMessage(5);  // Currently compiles, it should not

hintjens added a commit that referenced this pull request Jan 5, 2013
Make single parameter constructors explicit
@hintjens hintjens merged commit 127c255 into zeromq:master Jan 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants