the question may sound a little unusual. Take the POD structure:
struct MyStruct { int myInt; double myDouble; AnotherPOD* myPointer; };
The compiler knows the list of available data items. Do you know any way to get a list of a data member name (and type) either at compile time (better) or at runtime?
I have a huge number of POD structures, and I would like to automate the creation of the <
I know that I can create a parser for header files, create some files and compile them. However, I am sure that the compiler already had this information, and I would like to use it.
Any ideas?
thanks
source share