44 #ifndef LIB_FORMAT_COUT_H 45 #define LIB_FORMAT_COUT_H 70 template<
typename _CharT,
typename _Traits,
typename X,
typename = enable_StringConversion<X>>
71 inline basic_ostream<_CharT, _Traits>&
72 operator<< (basic_ostream<_CharT, _Traits>& os, X
const& obj)
74 return os << util::StringConv<X>::invoke (obj);
82 template<
typename _CharT,
typename _Traits,
typename X,
typename = enable_StringConversion<X>>
83 inline basic_ostream<_CharT, _Traits>&
84 operator<< (basic_ostream<_CharT, _Traits>& os, X
const* ptr)
89 return os <<
"⟂ «" << lib::meta::typeStr<X>() <<
"»";
failsafe invocation of custom string conversion.