~/talk

Fun? with NTTPs in C++

Talkat C++Now 2024 · 2024-04-29..05-03· [compilers-and-language-design]
slides:none on file

Shows how to make non‑structural objects usable as NTTPs by wrapping in a lambda so the value can be extracted via constexpr calls, and demonstrates a small CX_VALUE macro that exposes a concept so functions need not be constexpr. Explores grammar oddities that let qualifiers and attributes slip into template parameters (tested on GCC/Clang), including using volatile template parameter and alignas on NTTP, and points out compiler divergences and surprising acceptances.

AI-written summary · about

  1. 0:00Intro
  2. 0:16Private members
  3. 0:29Lambda
  4. 0:50Conexp
  5. 1:33Grammar
  6. 2:08Template Parameters
  7. 2:22Volatile Template
  8. 2:38Useful Attributes
  9. 2:56Virtual
  10. 3:22AIGN
~/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.