~/talk

C++ Pitfalls and Sharp Edges to Avoid

Talkat Core C++ 2025 · on Sunday, 2025-10-19· [c-and-cpp]
slides:none on file

Concrete C++ failure modes and concrete defenses: a real bug where a non-void timer callback omits a return and the system loops only on January 2nd; stray semicolons after if, comma-operator misuse in initializers, unspecified evaluation order causing different behaviors, returning references to temporaries, shared_ptr cycles leaking memory, moved-from objects with small-string quirks, and virtual overload/resolution surprises. Recommended defenses are -Wall -Wextra plus flags like -Wnull-dereference, static analysis with clang-tidy, runtime sanitizers (UBSan/ASan/leak), disciplined tests/CI, RAII/strong types, and simpler APIs or state machines.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 5:07Essence vs accidental bugs
  3. 13:15Safety nets: warnings and analyzers
  4. 21:23Examples of caught bugs
  5. 30:00Undefined behavior and testing gaps
  6. 35:19Recurring bugs and documentation
  7. 40:59Polymorphism and object slicing
  8. 48:50Type traits and template pitfalls
  9. 53:43Code smells and refactoring
  10. 1:00:09Summary and resources
  11. 1:01:35Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.