r/cpp • u/User_Deprecated • Jul 11 '26
Propagating exceptions from destructors with std::exception_ptr
https://www.sandordargo.com/blog/2026/07/08/exception_ptr
80
Upvotes
r/cpp • u/User_Deprecated • Jul 11 '26
View all comments
Show parent comment
17
u/KliffyByro Jul 11 '26
While RAII might not solve every problem, it’s a mystery to me why I should generally prefer to palm clean up responsibilities off on to every call site rather than having it happen reliably, automatically, and at the ideal time, which is the proposition of the typical RAII case.