From: John Maddock (John_Maddock_at_[hidden])
Date: 2000-11-25 06:25:38
>Sounds like a good suggestion. Should this also be the case for
>numeric_cast? I suspect so.
You can't use call_traits where template argument deduction is required, if
you wanted to use call_traits here you would have to make lexical_cast a
wrapper taking const T& as argument, which forwarded the call to the
call_traits-enabled implementation with an explicit template argument list.
BTW this "optimisation" is only worthwhile when there are aliasing issues
with the value being passed, IMO this is not the case with any of the casts
talked about here.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk