Boost logo

Boost :

From: Maxim Yegorushkin (e-maxim_at_[hidden])
Date: 2004-09-28 09:40:19


Vladimir Prus <ghost_at_[hidden]> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk