Subject: Re: [boost] Outcome/expected/etc/etc/etc
From: Rob Stewart (rstewart_at_[hidden])
Date: 2017-06-22 21:19:22
On June 5, 2017 8:06:27 AM EDT, Peter Dimov via Boost <boost_at_[hidden]> wrote:
> > I see this as a promising direction because it would allow you to
> > both an error and an exception, as per the other thread.
> To be more precise, you'll be able to represent the exact equivalent
> of the
> two Filesystem overloads with a single function.
> R filesystem_api(); // throws filesystem_error
> R filesystem_api( error_code& ec ) noexcept;
> outcome<R> filesystem_api();
That changes the behavior for what was the throwing overload, doesn't it?
-- Rob (Sent from my portable computation device.)