~/lightning

Lightning Talk: FINALLY - The Presentation You've All Been Waiting For

Lightningat CppCon 2021 · on Sunday, 2021-10-24· [career-development]
links:none on file
slides:none on file

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

  1. 0:00Start
  2. 0:16ROLLING YOUR OWN "FINALLY"
  3. 1:06WHINING
  4. 1:42THE NEXT PROBLEM
  5. 2:45THE SOLUTION
  6. 3:17POST SCRIPTUM
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.