Scope-based resource management for the kernel
Scope-based resource management for the kernel
Posted Jul 2, 2023 17:05 UTC (Sun) by bluss (subscriber, #47454)In reply to: Scope-based resource management for the kernel by ibukanov
Parent article: Scope-based resource management for the kernel
Non-trival C++ functions have two exit paths: the return statement (if a single one) and when unwinding an exception. To be fully explicit, one needs to write out destructor calls that happen in both those cases(!).