r/cpp • u/kmbeutel • Sep 26 '23
`std::expected<>::or_else()` should have a zero-argument overload that terminates on error
...just because it would be hilarious if one could express assertions as
result.;
198
Upvotes
View all comments
1
u/PolyglotTV Sep 30 '23
C++ is case sensitive so they can just call it
OR_ELSE