🟥 Describe C++ structs at compile time without listing all fields
Reflection Auto is a companion library to Reflection allowing describing structures at compile time without explicitly listing all of its fields.
🟥 Draft
This is mostly an experiment at this point, not even sure if this will be actually shippable anytime soon.
Auto reflection is totally experimental and is not really production ready, as it fails on some types / compilers combinations too.
It's possible also trying the experimental AUTO REFLECTION mode.
This mode is enabled the tests with the SC_REFLECT_AUTOMATIC
macro set to 1.
In this mode the reflection information are inferred automatically without needing to specialize MetaClass
template.
If code is being compiled with C++ 14 flags, the types reflected must support aggregate initialization, so this means that:
If code is compiled in C++ 20, another mechanism is used to detect fields (structured bindings), and so the previous limitations are lifted but a new one is added, that is:
🟦 Complete Features:
💡 Unplanned Features: