
I noticed boost log has a helper function for operator<< template< typename CharT, typename TraitsT, typename AllocatorT, typename T
inline basic_formatting_ostream< CharT, TraitsT, AllocatorT >&
operator<< (basic_formatting_ostream< CharT, TraitsT, AllocatorT >& strm, T
const& value)
{
strm.stream() << value;
return strm;
}
which is useful because a lot of code has operator<< overloads specifically
for std::ostream.
Recently we've moved our code to use a generic
template
participants (1)
-
Yi Ding