r/cpp • • Apr 02 '26

What happens when a destructor throws

https://www.sandordargo.com/blog/2026/04/01/when-a-destructor-throws
101 Upvotes

48 comments sorted by

View all comments

Show parent comment

6

u/zerhud Apr 02 '26

It is the only way to catch exceptions from field’s ctors