Boost logo

Boost :

From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2002-01-25 16:33:34


----- Original Message -----
From: rogeeff <rogeeff_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, January 25, 2002 4:17 PM
Subject: [boost] Re: Proposal for lexical_cast/lexical_convert

> --- In boost_at_y..., "Fernando Cacciola" <fcacciola_at_g...> wrote:
>
> > BTW, just for the record I note that the first case could be nicely
> solved
> > with my optional class...
> >
> > template<typename Target, typename Source>
> > optional<Target> lexical_convert(Source arg) ;
> >
> > used as:
> >
> > if ( int* n = peek(lexical_convert("2")) ) ...
>
> Can't we that just write like this:
>
> lexical_cast< optional<Target> >( arg )?
>
!? You lost me. Could you elaborate it?

[ It's not too late at night yet... But I can't follow you :-! ]

Fernando,


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