~/talk

Typical Type Typos

Talkat ACCU 2021 Online · 2021-03-10..03-13· [testing]
slides:none on file

Covers concrete C++ pitfalls with code examples: range-based for on a std::map copies because elements are pair<const K,V>, returning a reference to a temporary default argument produces a dangling reference from default arg, vector<bool> yields a vector<bool> proxy that needs forwarding references, missing noexcept on move causes std::vector to copy instead of move, and returning a moved element after pop_back uses an invalidated reference unless moved before popping; assumes knowledge of rvalue references and smart pointers.

AI-written summary · about

  1. 0:00Start
  2. 3:44Compiler Warnings
  3. 6:09What Is the Problem with this Piece of Code
  4. 26:31Specialization and Inheritance
  5. 29:22Value and Move Semantics
  6. 53:13Const Iterators
  7. 55:35What Can Go Wrong
  8. 1:02:25Dangling Reference Returned from Ptr
  9. 1:16:29Why Struct Is Not a Strong Type
  10. 1:24:31What Is the Problem with the Current Implementation
  11. 1:30:25Redundant Copying
~/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.