Boost logo

Boost :

Subject: [boost] [outcome] expected vs. result
From: Andrzej Krzemienski (akrzemi1_at_[hidden])
Date: 2017-05-23 08:21:52


Niall,
I am trying to summarize differences between `expected<T, error_code>` and
`result<T>`. So far, I have identified the following:
1. API/ABI stability guarantees.
2. `result` has empty state - `expected` does not.
3. `result` uses error_code_extended for more error details in the
ring-buffer.
4. No ordering (operator<) for `result`

Is the above list complete?

Regards,
&rzej;


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