r/cpp • u/pavel_v • Apr 02 '26
What happens when a destructor throws
https://www.sandordargo.com/blog/2026/04/01/when-a-destructor-throws
102
Upvotes
r/cpp • u/pavel_v • Apr 02 '26
View all comments
Show parent comment
2
u/fluorihammastahna Apr 02 '26
And that's why I'm saying that recoverable errors should be treated as expected behavior. You can always design your software with functions that may return a correct result or not.