

Reflection for C++26
Jan 26, 2024
Daveed Vandevoorde, a contributor to getting Reflection into C++26, joins hosts Phil and Timur. They discuss the implementation of reflection in C++26, the competitiveness of proposal in C++, and the potential of reflection to eliminate separate scripts.
AI Snips
Chapters
Transcript
Episode notes
EDG Emulates Compiler Bugs
- Daveed Vandevoorde describes how EDG emulates bugs of other compilers to ensure compatibility.
- He often generates many test cases to understand compiler bugs without source access, which can be frustrating but interesting work.
Value-Based Reflection Over Templates
- Reflection TS relied on template meta programming but was hard to use and debug.
- A value-based approach with expressive, compile-time constructs promises easier and more scalable reflection.
P2996 Minimal Reflection for C++26
- P2996 aims for a minimal viable reflection feature set for C++26 based on earlier bigger proposals.
- It combines compile-time reflection values, meta functions, and a splicing mechanism to inject code fragments.