From a475c545290ee7506f1ba361275a01100faff282 Mon Sep 17 00:00:00 2001 From: Martl Date: Thu, 17 Aug 2017 21:56:16 +0200 Subject: [PATCH] changed peektyp() to const --- zmq_addon.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zmq_addon.hpp b/zmq_addon.hpp index cb0c5a7..0e93ebd 100644 --- a/zmq_addon.hpp +++ b/zmq_addon.hpp @@ -338,7 +338,7 @@ public: // Peek type (fixed-size) from front template - T peektyp(size_t index) + T peektyp(size_t index) const { static_assert(!std::is_same::value, "Use peekstr() instead of peektyp()"); if(sizeof(T) != m_parts[index].size())