Merge pull request #146 from qsodev/peektypconst

changed peektyp() to const
This commit is contained in:
Constantin Rack 2017-08-18 07:25:31 +02:00 committed by GitHub
commit 0c249fc985

View File

@ -338,7 +338,7 @@ public:
// Peek type (fixed-size) from front // Peek type (fixed-size) from front
template<typename T> 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>()"); static_assert(!std::is_same<T, std::string>::value, "Use peekstr() instead of peektyp<std::string>()");
if(sizeof(T) != m_parts[index].size()) if(sizeof(T) != m_parts[index].size())