Boost logo

Boost :

From: Dale Peakall (dale.peakall_at_[hidden])
Date: 2001-05-30 05:15:13


> How do you feel about overloading lexical_cast with a version that does
> not need explicit template types specified such as the following :
>
> template < typename Target, typename Source >
> void lexical_cast(Target& result, const Source& arg) {
> result = boost::lexical_cast< Target >( arg );
> }
>
> Here the system will figure the Target-type out for you.

Not exactly a 'cast' then is it. I don't think it makes sense for boost
to do this.

        - Dale.
        


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