~/talk

C++ Reflection - Back on Track

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

Proposal P2996 gives compile‑time reflection with a single opaque meta type (std::meta_info), a prefix ^ operator for reflection, consteval meta functions to query members and types, and a code‑injection mechanism using splice [::] plus helper functions substitute and define_class. Examples compile on experimental EDG, Clang fork and NVIDIA NVHPC compilers and show real features: auto fill of a command‑line options struct, enum→string, automatic serialization and struct‑of‑arrays generation; implementations exist but remain preliminary.

AI-written summary · about

  1. 0:00Introduction to reflection
  2. 23:23Proposal P2996 fundamentals
  3. 35:42Splicers and operators
  4. 40:43Metafunctions and querying
  5. 50:44Practical coding examples
  6. 56:03Advanced injection techniques
  7. 1:10:23Serialization and future outlook
~/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.