Re:You’re better off using Exceptions
by AstralStorm on Tuesday February 04, 2020 @12:00PM
(#22237930)
Calling the destructors is identical to ending any scope in C++, including function calls. Where is that extra expense?
[ Parent
| on HN ]
Re:You’re better off using Exceptions
by iainmerrick on Tuesday February 04, 2020 @12:33PM
(#22238370)
You likely have to parse exception blocks and maybe chase pointers to find the objects to destroy. In the happy path, you can just call the destructors directly.