TartanLlama/expected

propagation of unexpected

reder2000 opened this issue · 0 comments

in a chain of function of functions returning expected<T,E> with different Ts but the same E, in would be handy to have the possibility to return the unexpected
return my_failed_expected.unexpected()
rather than writing
return tl::make_unexpected(my_failed_excepted.error())