Lightning Talk: Static Reflection on the Budget in C++23
summary
Shows concrete tricks to get usable static reflection with current compilers: turn a struct into a structure-to-tuple using structured bindings and requires, embed the current source and run meta_find on embedded source to locate one struct (demo finds a single Foo), extract its type and instantiate it from the found text, and recover names with a compile-time name extraction hack based on type_name/pretty_function and compile-time strings. All examples compile and run on modern C++23 toolchains.
AI-written summary · about
chapters (5)
related talks
01h 01mReflection
01h 37mReflection: Compile-Time Introspection of C++
55mC++14 Reflections Without Macros, Markup nor External Tooling..
01h 03mC++ Reflection: Back on Track
01h 08mKeynote: Reflection in C++26 - Welcome to v0.1 of the meta::[[verse]]!
46mBuilding a C++ Reflection System in One Weekend Using Clang and LLVM
05mPostmodern Meta C++
01h 04mWelcome to v1.0 of the meta::[[verse]]!
