Skip to content

Commit e9b28db

Browse files
authored
Merge pull request #87 from rolftimmermans/exception-fix
Constructor for std::exception does not take string argument.
2 parents c5611d6 + e138b74 commit e9b28db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zmq_addon.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class multipart_t
222222
{
223223
static_assert(!std::is_same<T, std::string>::value, "Use popstr() instead of poptyp<std::string>()");
224224
if (sizeof(T) != m_parts.front().size())
225-
throw std::exception("Invalid type, size does not match the message size");
225+
throw std::runtime_error("Invalid type, size does not match the message size");
226226
T type = *m_parts.front().data<T>();
227227
m_parts.pop_front();
228228
return type;

0 commit comments

Comments
 (0)