diff --git a/zmq_addon.hpp b/zmq_addon.hpp index df61395..e60b4ec 100644 --- a/zmq_addon.hpp +++ b/zmq_addon.hpp @@ -222,7 +222,7 @@ public: { static_assert(!std::is_same::value, "Use popstr() instead of poptyp()"); 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(); m_parts.pop_front(); return type;