Boost logo

Boost :

Subject: Re: [boost] [outcome] How to drop the formal empty state
From: Peter Dimov (lists_at_[hidden])
Date: 2017-05-26 16:19:05


Niall Douglas wrote:

> But you still get exactly that *if* you ask for it:
>
> result<T> function()
> {
> result<T> r(empty);
>
> // do things that put something into r
>
> return r;
> }

Sure, but explicitly asking for it correlates negatively with making the
logic error of not overwriting it, and there are also C-style arrays to
consider.


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