views:

118

answers:

1

Hi,

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

Greetings

+11  A: 

No, not without doing some work at compile time first manually. C++ has no reflection. Qt works around this with its moc system which scans your source files and generates meta data for all Qt (and inherited) classes

Evan Teran