aboutsummaryrefslogtreecommitdiff
path: root/src/shared/ByteBuffer.h
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2009-03-18 21:57:49 +0100
committerXTZGZoReX <none@none>2009-03-18 21:57:49 +0100
commit838ad6d847b5058a4eb9fd1be8496bf7ed4ca601 (patch)
treeb28e7bc92a736a424ab48ad214125219c93c88e3 /src/shared/ByteBuffer.h
parent21374e2590aa7e97bdae280d7e0e418ff1e7d35f (diff)
parentd84cec89c040766c770576074e1b1f03154c5c37 (diff)
* Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/shared/ByteBuffer.h')
-rw-r--r--src/shared/ByteBuffer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/ByteBuffer.h b/src/shared/ByteBuffer.h
index 97b6c1cbd17..801270fa711 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>()
+ {
+ std::string tmp;
+ *this >> tmp;
+ return tmp;
+ }
template <typename T> T read(size_t pos) const
{
ASSERT(pos + sizeof(T) <= size() || PrintPosError(false,pos,sizeof(T)));