lundi 26 novembre 2018

Are (Self) Reflections in C++ possble?

Without using macros or Boost libraries, is it possible to itterate through a classe's own members in C++?

I know "Reflections" are not natively possible in C++ like they are in Java, C# and Go (heartbreaking), but I don't know if that applies to just classes looking at attributes of other classes or if that also applies to themselves.

I'm hopeful some class minding it's own business might be able to see the attributes of itself somehow at runtime; is this possible?





Aucun commentaire:

Enregistrer un commentaire