Boost logo

Boost :

Subject: Re: [boost] Outcome v2
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2017-07-12 00:10:12


On 12/07/2017 11:52, Peter Dimov wrote:
>> Having said that, this would basically render it impossible to have
>> value + exception *without* an error_code.
>
> Why would one ever want that?

People using expected<T, exception_ptr>, for one.

Perhaps those people are out of scope for Outcome, though.

But as long as those people are allowed to pretend that error_codes
don't exist (ie. it picks an appropriate non-default error code for any
exception) then they probably won't care.


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