mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-04-18 23:41:10 +02:00
Constructor for std::exception does not take string argument.
This commit is contained in:
parent
c5611d6aff
commit
e138b74cde
@ -222,7 +222,7 @@ public:
|
|||||||
{
|
{
|
||||||
static_assert(!std::is_same<T, std::string>::value, "Use popstr() instead of poptyp<std::string>()");
|
static_assert(!std::is_same<T, std::string>::value, "Use popstr() instead of poptyp<std::string>()");
|
||||||
if (sizeof(T) != m_parts.front().size())
|
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>();
|
T type = *m_parts.front().data<T>();
|
||||||
m_parts.pop_front();
|
m_parts.pop_front();
|
||||||
return type;
|
return type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user