"There is now (thanks to CERN's presence :-) a working group on reflection in C++."
A few years ago I built an entire framework for automatic reflection in C++ - it worked by querying the export table of the executable or library. Eventually I lost interest and let the project slide, but I think this approach would be a good one to build on.