Boost logo

Boost :

Subject: Re: [boost] [review] string convert
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2011-05-04 13:24:16


Barend Gehrels wrote:
> On 4-5-2011 16:33, Stewart, Robert wrote:
> > Barend Gehrels wrote:
> >
> >> optional<int> i ... (similar as other one with optional)
>
> > I presume you mean the following, but why?
> >
> > optional<int> i = convert_cast
> > <
> > optional<int>
> > , throw_even_though_i_specified_a_failback_
> > >(s, 17);
> >
> Good question - I included it because it was in the original
> list of Gordon, but I actually also wonder what is the
> specific usage of this function.

I think you misunderstood one of the use cases. See my reply to Gordon.

> > The only other one I haven't commented on is the
> > pair<bool,int> version. It shouldn't require a second
> > argument.
>
> You mean the pair<bool,...> is redudant because there is also
> the version with optional. I agree.

No, I mean the second argument should be supported but optional (overloading is fine).

_____
Rob Stewart robert.stewart_at_[hidden]
Software Engineer using std::disclaimer;
Dev Tools & Components
Susquehanna International Group, LLP http://www.sig.com

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.


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