From e138b74cde5d575debafdd71c5574676329fa2da Mon Sep 17 00:00:00 2001 From: Rolf Timmermans Date: Fri, 28 Oct 2016 14:53:22 +0200 Subject: [PATCH] Constructor for std::exception does not take string argument. --- zmq_addon.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;