mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-13 10:52:57 +01:00
changed peektyp() to const
This commit is contained in:
parent
156cf8fa73
commit
a475c54529
@ -338,7 +338,7 @@ public:
|
||||
|
||||
// Peek type (fixed-size) from front
|
||||
template<typename T>
|
||||
T peektyp(size_t index)
|
||||
T peektyp(size_t index) const
|
||||
{
|
||||
static_assert(!std::is_same<T, std::string>::value, "Use peekstr() instead of peektyp<std::string>()");
|
||||
if(sizeof(T) != m_parts[index].size())
|
||||
|
Loading…
Reference in New Issue
Block a user