In C ++, there is no way to do what you ask. As suggested in another answer, RTTI may help you, but probably this is not what you need.
If you describe in more detail what you are trying to do and why you need reflection, we can offer other solutions in C ++.
source share