3 ms·
While you will need C++26 for real reflection, you could use some of the libraries that make do with what is already possible via concepts, if constexpr and typ
by pjmlp 1y ago
While you will need C++26 for real reflection, you could use some of the libraries that make do with what is already possible via concepts, if constexpr and type traits.
For example,
- https://www.boost.org/doc/libs/latest/doc/html/boost_pfr.html https://www.boost.org/doc/libs/latest/doc/html/boost_pfr.htm...
- https://github.com/getml/reflect-cpp https://github.com/getml/reflect-cpp
And kudos for using modern C++.