$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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.