mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 18:40:28 +01:00
Merge pull request #87 from rolftimmermans/exception-fix
Constructor for std::exception does not take string argument.
This commit is contained in:
commit
e9b28db670
@ -222,7 +222,7 @@ public:
|
||||
{
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user