Boost logo

Boost :

Subject: Re: [boost] [outcome] comments on Regular ops
From: Peter Dimov (lists_at_[hidden])
Date: 2018-01-22 23:50:10

Andrzej Krzemienski wrote:

> This could be handled by providing a dedicated heterogeneous comparison
> between `result<T, EC>` and `EC`.

I prefer `if( !r && r.error() == condition )`. Similarly, `r? *r: x` instead
of `r.value_or(x)`.

Boost list run by bdawes at, gregod at, cpdaniel at, john at