~/talk

Templates Made Easy with C++20

Talkat Meeting C++ 2024 · 2024-11-14..11-16· [typescript]
slides:none on file

Claims that C++20 concepts plus constexpr/consteval and fold expressions let template code read like normal code, remove much SFINAE and heavy type-trait plumbing, and produce clearer compile‑time errors. Demonstrations use production GUI and DSP examples: an in‑place processor wrapper, optional reset implemented with the if consteval trick, and a properties system replacing verbose metaprogramming. Notes practical limits: recursion depth hits for consteval Fibonacci (compiler flags matter) and occasional performance surprises across compilers.

AI-written summary · about

  1. 0:00Introduction
  2. 5:14Templates to C++20 constexpr
  3. 15:50Understanding C++20 concepts
  4. 25:21Requires expression mistakes
  5. 33:01Documenting APIs with concepts
  6. 46:43Test-driven development for concepts
  7. 50:17Conclusion
~/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.