Skip to content

Commit

Permalink
Merge pull request zeromq#87 from rolftimmermans/exception-fix
Browse files Browse the repository at this point in the history
Constructor for std::exception does not take string argument.
  • Loading branch information
bluca authored Oct 28, 2016
2 parents c5611d6 + e138b74 commit e9b28db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zmq_addon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class multipart_t
{
static_assert(!std::is_same<T, std::string>::value, "Use popstr() instead of poptyp<std::string>()");
if (sizeof(T) != m_parts.front().size())
throw std::exception("Invalid type, size does not match the message size");
throw std::runtime_error("Invalid type, size does not match the message size");
T type = *m_parts.front().data<T>();
m_parts.pop_front();
return type;
Expand Down

0 comments on commit e9b28db

Please sign in to comment.