Mindtraveller Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
Yes we all know that C++ is statically typed language so there's a problem detecting class/structure members in runtime. Finally this situation seem to change in C++11/C++14 (I mean all the modern compilers).
Please note this small library: https://github.com/apolukhin/magic_get
It could possibly be handy for automatic serialization/xmlization/jsonification of U++ structures.