From 0f2d7c9ed9dfa3716840fc112bd53e5ec6b6315b Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Wed, 22 Jun 2016 16:18:02 +0200 Subject: adds a tree format printer for "binparse" types. --- binparse/types.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'binparse/types.hpp') 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 +T operator+(T const lh, T const rh) { + return T(0 + lh + rh); +} + } \ No newline at end of file -- cgit v1.2.3-70-g09d2