Struct reflection: std::tuple for struct's members
10
clang's __builtin_dump_struct
11
Checking if you are using tabs or spaces
Description:
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Grab it
Explore advanced reflection techniques in C++ without relying on the Reflection TS in this 39-minute conference talk from Meeting C++ 2022. Discover ingenious methods to implement reflection using current C++ features, including template/function specialization, template argument deduction, and SFINAE. Learn how to count struct members, utilize structured bindings, and leverage std::tuple for struct reflection. Gain insights into clang's __builtin_dump_struct and even find out how to check if you're using tabs or spaces. Delve into these creative approaches that push the boundaries of C++ reflection capabilities while awaiting the official Reflection TS implementation.
Reflection without Reflection in C++ - Current Techniques and Possibilities