Lightning Talk: FINALLY - The Presentation You've All Been Waiting For
summary
Shows a concrete RAII-based finally implementation: store a lambda, call it in the destructor, and use it to reliably close files and flush footnote buffers. Demonstrates a performance fix by templating on the action so compilers optimize away indirection, and a portability fix with a factory function for deduction so pre-C++17 users can still use auto. Adds a macro to avoid naming; generated code is tiny and inlined, and the examples work.
AI-written summary · about
chapters (6)
- 0:00Start
- 0:16ROLLING YOUR OWN "FINALLY"
- 1:06WHINING
- 1:42THE NEXT PROBLEM
- 2:45THE SOLUTION
- 3:17POST SCRIPTUM








