~/talk

Cute C++ Tricks, Part 2 of N: More code you should learn from and never write

Talkat Pure Virtual C++ 2022 · on Tuesday, 2022-04-26· [c-and-cpp, software-architecture]
links:none on file
slides:none on file

Shows concrete C++ gotchas: using assert in constexpr to force compile-time failures where static_assert won't work, why constexpr functions can be ill-formed yet compile (the IFNDR (ill-formed no diagnostic required) corner), and a runnable registry hack that stores values in a static during a throwing initializer and later reconstructs a Lambda type with decltype to access that storage. Covers the exact code patterns, compiler warnings produced, and a real failure mode when moving Lambdas to a GPU.

AI-written summary · about

  1. 0:00Introduction
  2. 1:14Talk objectives and disclaimers
  3. 4:46Assert in constexpr
  4. 13:17Constexpr functions
  5. 21:53Spooky static storage
  6. 29:19Questions and conclusion
~/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.