
On Wed, Jul 12, 2017 at 5:29 PM, Gavin Lambert via Boost < boost@lists.boost.org> wrote:
On 13/07/2017 11:48, Emil Dotchevski wrote:
then you have no choice but to do an error domain conversion.
In case of Outcome, yes.
In case of Noexcept, no, it has been designed to be able to propagate the original error object.
That worries me a bit where code is using a generic type such as int for error codes but don't have the same meanings for the values. It would be very easy to accidentally let one slip through without conversion so that it ends up representing the wrong error.
Agreed. I generally don't recommend returning int error codes with
Noexcept, for the same reason it is a bad idea to throw an int.
But this is a different issue. The problem when you have to go from
result