
12 Apr
2012
12 Apr
'12
7:41 p.m.
There is one more solution: determinate stream_char<>::type for UserType using lots of meta-programming. For that solution following meta-functions required: has_output_stream_operator_for_char<UserType>::value has_output_stream_operator_for_wchar_t<UserType>::value has_output_stream_operator_for_char16_t<UserType>::value has_output_stream_operator_for_char32_t<UserType>::value
Is there any ideas, how that can be done in a *portable* way?
Perhaps Boost.TTI can be of help? Regards, Nate