We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5611d6 + e138b74 commit e9b28dbCopy full SHA for e9b28db
zmq_addon.hpp
@@ -222,7 +222,7 @@ class multipart_t
222
{
223
static_assert(!std::is_same<T, std::string>::value, "Use popstr() instead of poptyp<std::string>()");
224
if (sizeof(T) != m_parts.front().size())
225
- 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");
226
T type = *m_parts.front().data<T>();
227
m_parts.pop_front();
228
return type;
0 commit comments