Boost logo

Boost :

Subject: Re: [boost] [outcome] High level summary of review feedback accepted so far
From: Peter Dimov (lists_at_[hidden])
Date: 2017-05-30 00:57:18


Gavin Lambert wrote:
> FWIW, my preferred options would be (which I think were the originals):
>
> - value() throws if holding error or exception (or empty)
>
> - error() returns E{} if holding value or E{errc::has_exception} if
> holding exception, or E{errc::no_value} if empty (names made up on the
> spot, doesn't matter)
>
> - exception() returns nullptr if holding value or error or empty

I like these as well.


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