22 Jun
2017
22 Jun
'17
9:19 p.m.
On June 5, 2017 8:06:27 AM EDT, Peter Dimov via Boost
I see this as a promising direction because it would allow you to store 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.)