Closed ned14 closed 3 years ago
Add:
basic_result<void, E1> success_if_valued<E1 = E2>(value_or_error<T, E2>)
E2
E1
value_or_error<T, E> is the Outcome concept already in there.
value_or_error<T, E>
Make sure these work for outcome::outcome<T> inputs as well.
outcome::outcome<T>
After investigation, this cannot be easily done currently without using macros, so closing.
Add:
basic_result<void, E1> success_if_valued<E1 = E2>(value_or_error<T, E2>)
.E2
must be constructible toE1
.value_or_error<T, E>
is the Outcome concept already in there.Make sure these work for
outcome::outcome<T>
inputs as well.