I've done this before as well.
But it's a very simple function.
And I assume TestAutoSelect is a macro.
Can I take a look at the code?
Yes, TextAutoSelect is a macro, because without using a macro, there is
no way to generate a wchar_t string literal (prefixed with L) from a
char string
, and the only runtime cost
would be that of a one-line inline function (which can be optimized away
using compiler optimizations, like the VC++ compiler does.)
I would like to know if there is any interest for this tiny library to
be submitted to Boost.
Thanks for your consideration,
-
Ehsan