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
1
u/TheoreticalDumbass :illuminati: Apr 03 '26
well, C just got defer, and compilers had a __attribute__((__cleanup__(function))) extension