There is some, lets call them experimental, C++ libraries for that. But C++ not having static reflection is the main show stopper on that frontier.
Could you provide some links?
It uses C++20 features and macros. The macros limit it to a POD count of 8.