
28 Sep
2004
28 Sep
'04
2:40 p.m.
Vladimir Prus <ghost@cs.msu.su> wrote:
But in that case, I'm not sure it's good to use disable_if. According to tests, lexical_cast is much more portable than enable_if/disable_if and you don't need the generic lexical_cast<T>(T) case, only the string case.
I see two solutions here: portable #ifdef's or add another version of lexical_cast with a different name. BTW, in my projects I use const_string<>, which lexical_cast<> has never heard of. -- Maxim Yegorushkin