~/talk

C++: Unexpected Behaviour

Talkat Meeting C++ 2017 · 2017-11-09..11-11· [rust]
links:none on file
slides:none on file

Lists concrete surprises: code snippets that let private method execute via base pointer, array indexing with literal first (5[a]), overload-resolution gotchas that hide base overloads and require using base::f, optimizer-driven changes where undefined behavior removes or alters code (uninitialized function pointer, signed overflow, redundant reads). Includes fixes (string literal s, wrapper lambdas, static_casts), compiler warnings and static analysis guidance, and slides with full examples and runnable snippets.

AI-written summary · about

  1. 0:00Introduction to CPP
  2. 1:30Defining unexpected behavior
  3. 3:20C array behavior
  4. 4:56Encapsulation risks
  5. 8:17Operator usage and literals
  6. 12:20Overload resolution issues
  7. 14:19Inheritance and hiding
  8. 16:05Ternary operator quirk
  9. 17:10Compiler optimizations
  10. 21:42Guaranteed copy elision
  11. 23:57Preventing bugs
  12. 26:02Q&A session
~/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.