I’ve a typedef char char_t which can also be typedef wchar_t char_t and What I want is a generic cout.
I have a util namespace I want an util::cout that would be std::cout if char_t is char and std::wcout if char_t is wchar_t
I’ve a typedef char char_t which can also be typedef wchar_t char_t and What
Share
Yes, no problem; you can do this with a template specialisation holding a
staticreference to the appropriate object.