summaryrefslogtreecommitdiff
path: root/binparse/types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'binparse/types.hpp')
-rw-r--r--binparse/types.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/binparse/types.hpp b/binparse/types.hpp
index e92a7a6..9b6c4a6 100644
--- a/binparse/types.hpp
+++ b/binparse/types.hpp
@@ -17,4 +17,9 @@ BOOST_STRONG_TYPEDEF(uint16_t, Value16)
BOOST_STRONG_TYPEDEF(uint32_t, Offset32)
BOOST_STRONG_TYPEDEF(uint32_t, Value32)
+template <typename T>
+T operator+(T const lh, T const rh) {
+ return T(0 + lh + rh);
+}
+
} \ No newline at end of file