Add operator>> to IStreamWriter.hpp

This commit is contained in:
Phillip Stephens 2015-10-15 15:20:50 -07:00
parent 069840a77e
commit a753c2e38a
1 changed files with 7 additions and 0 deletions

View File

@ -1064,6 +1064,13 @@ public:
protected:
Endian m_endian;
};
template <typename T>
IStreamWriter& operator<<(IStreamWriter& lhs, const T& rhs)
{
lhs.writeVal<T>(rhs);
return lhs;
}
}
}
#endif // STREAMWRITER_HPP