Boost logo

Boost :

Subject: Re: [boost] [review] string convert
From: Gordon Woodhull (gordon_at_[hidden])
Date: 2011-05-04 12:09:57


On May 4, 2011, at 11:39 AM, Gordon Woodhull wrote:
>> In any case you would then use the version returning optional and the client code could then do what it needs to do.
>
> Yes, that's what I said, but Rob shot that down with the nondefaultable stuff. (And apparently forgot, understandably.)

Correction. Nondefaultable always leads to optional. Rob did not forget his own argument.

I think it's just Vladimir's case of "I want to supply a fallback but I also want to know if conversion succeeded" that requires something akin to a pair.


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