Reflection in C++ Next
summary
Claims two workable static-reflection designs (the reflexpr operator and a dollar-value variant), contrasts heterogeneous vs homogeneous value syntax, and shows concrete code: an SQLite active-record demo that compiles and creates/queries tables, an HPX component injection example that generates RPC boilerplate, and a benchmarks rewrite that removes macros. Prototypes run under a Clang-based implementation, compile and execute, and the main tradeoffs are ergonomics versus compile-time instantiation cost.
AI-written summary · about
chapters (20)
- 0:00Start
- 5:14Reflection or Introspection
- 5:54Reflection and Injection
- 10:49Main goals
- 11:48Study Group 7: Approaches
- 14:40PO194R4: Static reflection. Simple example
- 15:39PO194R4: Static reflection. Enum-to-string
- 16:40PO194R4: Static reflection. Generic equal
- 17:14PO194R4: Static reflection. Pros and cons
- 18:11P0590RO: A design for static reflection. Simple example
- 19:42P0590RO: A design for static reflection. Pros and cons
- 20:06Proposals
- 20:18Heterogeneous vs homogeneous
- 22:04Homogeneous reflection syntax
- 23:22Constexpr control-flow. Find algorithm
- 24:46Constexpr control-flow. Packing structures
- 26:31Homogeneous reflection. Problems
- 28:05Homogeneous reflection. Pros and cons
- 35:22Implementations
- 36:09References
related talks
01h 21mGazing Beyond Reflection for C++26
01h 03mC++ Reflection: Back on Track
01h 05mC++ Reflection Based Libraries to Look Forward To
39mReflection without Reflection TS
45mBetter C++14 reflections
02h 02mPeering forward: C++'s next decade
58mWriting a reflection engine from scratch
57mBuilding a C++ Reflection System
