ned14 / outcome

Provides very lightweight outcome<T> and result<T> (non-Boost edition)
https://ned14.github.io/outcome
Other
676 stars 62 forks source link

Add helpers `success_if_valued()` #239

Closed ned14 closed 3 years ago

ned14 commented 3 years ago

Add:

value_or_error<T, E> is the Outcome concept already in there.

Make sure these work for outcome::outcome<T> inputs as well.

ned14 commented 3 years ago

After investigation, this cannot be easily done currently without using macros, so closing.