From a753c2e38a0e3ec786ba9ea8b6994af8dec47540 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Thu, 15 Oct 2015 15:20:50 -0700 Subject: [PATCH] Add operator>> to IStreamWriter.hpp --- include/Athena/IStreamWriter.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/Athena/IStreamWriter.hpp b/include/Athena/IStreamWriter.hpp index ff1f214..dd85377 100644 --- a/include/Athena/IStreamWriter.hpp +++ b/include/Athena/IStreamWriter.hpp @@ -1064,6 +1064,13 @@ public: protected: Endian m_endian; }; + +template +IStreamWriter& operator<<(IStreamWriter& lhs, const T& rhs) +{ + lhs.writeVal(rhs); + return lhs; +} } } #endif // STREAMWRITER_HPP