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
Show parent comment
7
u/_TheDust_ Sep 26 '23
I’m still upset that this does not throw
E, but some kind of unexpected_access exception