~/talk

C++ Common Knowledge

Talkat Meeting C++ 2023 · 2023-11-12..11-14· [software-architecture]
links:none on file
slides:none on file

A short live code forensic walks through a tiny buggy program that compiles but crashes showing more than ten real violations and applying fixes one by one until it behaves. Concrete claims: a catalog of 12 concrete pitfalls (uninitialized members, wrong init order, implicit conversions, ODR, missing virtual destructor, slicing, RAII misuse, hidden friends, const this, inline variables, spaceship vs ==, exception safety). Uses C++20 features and GCC Clang MSVC warnings and demonstrates which edits actually stop crashes.

AI-written summary · about

  1. 0:00Introduction
  2. 2:05Buggy C++ code demo
  3. 5:48C++ best practice violations
  4. 6:54Fix uninitialized members
  5. 9:03Declaration vs initialization order
  6. 11:11Assignment vs initialization
  7. 14:20Implicit conversion dangers
  8. 17:12ODR and global variables
  9. 21:04Resource Acquisition Is Initialization basics
  10. 27:00RAII and unique pointers
  11. 27:21Member functions and 'this'
  12. 34:34Hidden friends and operators
  13. 39:16Virtual destructors
  14. 42:49Object slicing and copying
  15. 46:06Summary
  16. 46:29Q&A
~/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.