Reputation: 391
Is there a way to get all of an object's attributes programmatically without having to be class-specific.
Upvotes: 2
Views: 3588
Reputation: 11004
No, there is no way to do this, but there should never be a need to in most cases.
Upvotes: -1
Reputation: 179
yes.. for the start you can parse a c++ file ;).. Look at clang..
Depends on what you are trying to achieve - if its reflection you are talking about - no, its not a feature of the language.
Upvotes: 3