Dynamically list all members of a class

Is it possible in C ++ to dynamically (at run time) get a list of all members of a class?

+5
source share
1 answer

No, not doing some work during manual compilation manually. C ++ has no reflection. Qt works with its own system moc, which scans your source files and generates metadata for all Qt classes (and legacy ones)

+13
source

All Articles