Boost logo

Boost :

Subject: Re: [boost] [outcome] expected, etc. why are these assignable
From: Peter Dimov (lists_at_[hidden])
Date: 2017-06-02 15:56:53


Andrzej Krzemienski wrote:

> This is a valid point. If you need this tricky fourth state once in 1000
> use cases, you can afford to use std::variant instead and leave without
> the convenience of `outcome`.

Or you could use expected<T, E...>, assuming we decide this is a direction
worth pursuing. Proof of concept here:

https://github.com/pdimov/variant2/blob/master/include/boost/variant2/expected.hpp


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