5 ms·
since optional is a thing now and the standards committee isn't afraid of verbosity maybe we can get std::value_or_error ;)
by jgh 9y ago
since optional is a thing now and the standards committee isn't afraid of verbosity maybe we can get std::value_or_error ;)
- throwaway84742 9y agoLike Google StatusOr<>?
- jgh 9y agoMaybe? I'll take a look at it!
- AstralStorm 9y agoLike std::future right? You can use that one today.
- blub 9y agoNope, a result<T,Err> like expected-lite on github.
- RotsiserMho 9y agoYou might be interested in Boost.Outcome (v2) or the proposed std::expected.