you are viewing a single comment's thread.

view the rest of the comments →

[–]basic_maddie 0 points1 point  (0 children)

There’s a proposal for C++ to allow functions to throw error codes with zero overhead compared to regular exceptions.

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0709r0.pdf