C++ mechanism to automatically generate ability of code to introspect member variables