Gazing Beyond Reflection for C++26
Talkat CppCon 2024 · on Friday, 2024-09-20· at 16:15· Adams A, 6700 North Gaylord Rockies Boulevard·
summary
Proposal P2996 aims to land value‑based reflection in C++26 and already shows working implementations in EDG and a Bloomberg fork of clang, with SG7 review passed. Key tools: a reflection operator + splice to turn declarations into values and back, token‑sequence (Q) injection with interpolation to generate real C++ code, and annotations-as-structural-values to guide generation. Demos build Tuple, a 100‑line type‑eraser, and a clap‑style CLI parser; examples compile on Compiler Explorer and emit useful diagnostics.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 0:53C++ reflection fundamentals P2996
- 17:09P2996 features and examples
- 33:01Token injection proposal
- 47:34Token injection implementation
- 50:21Annotations for reflection
- 1:04:22Acknowledgments
- 1:07:40Q&A








