|
Boost : |
Subject: Re: [boost] [review] string convert
From: Vicente BOTET (vicente.botet_at_[hidden])
Date: 2011-05-05 13:32:11
> Message du 05/05/11 18:58
> De : "Stewart, Robert"
> A : "'boost_at_[hidden]'"
> Copie à :
> Objet : Re: [boost] [review] string convert
>
> Vicente BOTET wrote:
> > De : "Vladimir Batov"
> > > "Stewart, Robert" wrote
> >
> > > Maybe to avoid the temptation of pairing up we could simplify
> > > (at least from the user perspectives) down to:
> > >
> > > 1. T convert_cast(S)
> > > 2. T convert_cast(S, T, throw_t =nothrow)
> >
> > I don't see why (2) the user could want to throw when is giving
> > a fallback. So the throw_t =nothrow is not needed.
>
> That's the non-DefaultConstructible, no-sentinel use case:
Sorry. I believed we had a consensus in using the default_value CP so I was taking the additional T parameter as fallback.
Could we state if the default_value CP is adopted? How think is not a good thing and why?
Best,
Vicente
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk