~/talk

C++ Puzzlers

Talkat C++ on Sea 2022 · 2022-07-05..07-07· [c-and-cpp]
links:none on file
slides:none on file

Shows concrete C++ footguns: how the lexer’s maximal munch turns a++ + ++b into a compilation error (post‑increment applied to an rvalue), how overload choice for an operator on an incomplete type is unspecified across GCC/Clang/MSVC, how specializing std traits (std::is_signed / numeric_limits) broke CI when MSVC changed, why volatile a + a is undefined behavior (unsequenced side effects), and how std::async futures behave: temporaries block on destruction while std::async deferred never runs unless waited on. Tools and evidence: PVS‑Studio, Godbolt compiler tests, and live compiler comparisons.

AI-written summary · about

  1. 0:00Start
  2. 1:05Introduction
  3. 5:55How It Will Be Parsed in the End
  4. 9:01Maximal Munch Principle
  5. 11:49Templates
  6. 18:17Static Analyzer
  7. 22:40Why Are My Tests Failing
  8. 33:09Volatile Variable
~/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.