Boost logo

Boost :

Subject: Re: [boost] [outcome v2] Please comment on new result<T, EC> reference API docs
From: Peter Dimov (lists_at_[hidden])
Date: 2017-06-23 09:55:03


degski wrote:
> On 23 June 2017 at 03:25, Peter Dimov via Boost <boost_at_[hidden]>
> wrote:
>
> > For one, vector functions that grow the size typically return void. So
> > you could just turn that into bool or an enum and you'd be done.
>
> Maybe pop_back() could be made to return the popped element instead of
> void.

pop_back doesn't grow the size. It never needs to reallocate. As for why it
doesn't return the element, because copying it may throw.


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