summaryrefslogtreecommitdiff
path: root/binparse/types.hpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-06-23 18:07:42 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-06-23 18:07:42 +0200
commita7bcede17b4c10e172c7877fc2ce89862dc454af (patch)
treed89b8ff274d18d67d695c5f320a1d079e1bb26b6 /binparse/types.hpp
parent0f2d7c9ed9dfa3716840fc112bd53e5ec6b6315b (diff)
downloadopenwar-a7bcede17b4c10e172c7877fc2ce89862dc454af.tar.gz
openwar-a7bcede17b4c10e172c7877fc2ce89862dc454af.tar.bz2
openwar-a7bcede17b4c10e172c7877fc2ce89862dc454af.zip
adds alot more binary parsing.
Diffstat (limited to 'binparse/types.hpp')
-rw-r--r--binparse/types.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/binparse/types.hpp b/binparse/types.hpp
index 9b6c4a6..d1b1910 100644
--- a/binparse/types.hpp
+++ b/binparse/types.hpp
@@ -17,6 +17,8 @@ BOOST_STRONG_TYPEDEF(uint16_t, Value16)
BOOST_STRONG_TYPEDEF(uint32_t, Offset32)
BOOST_STRONG_TYPEDEF(uint32_t, Value32)
+BOOST_STRONG_TYPEDEF(std::string, PString8);
+
template <typename T>
T operator+(T const lh, T const rh) {
return T(0 + lh + rh);