diff --git a/src/shared/ByteBuffer.h b/src/shared/ByteBuffer.h index 97b6c1cbd1..801270fa71 100644 --- a/src/shared/ByteBuffer.h +++ b/src/shared/ByteBuffer.h @@ -228,6 +228,12 @@ class ByteBuffer _rpos += sizeof(T); return r; }; + template<> std::string read() + { + std::string tmp; + *this >> tmp; + return tmp; + } template T read(size_t pos) const { ASSERT(pos + sizeof(T) <= size() || PrintPosError(false,pos,sizeof(T)));