coolcoolcool
coolcoolcool

Reputation: 391

Generically get all object's attributes C++

Is there a way to get all of an object's attributes programmatically without having to be class-specific.

Upvotes: 2

Views: 3588

Answers (2)

woz
woz

Reputation: 11004

No, there is no way to do this, but there should never be a need to in most cases.

Upvotes: -1

RamneekHanda
RamneekHanda

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

Related Questions