Find the list of member variables of a class and their types?
I haven't ever heard it's possible, but asking with the hope that it might. For a class with many more member variables than this: class A { public: SomeOtherClass* s; int i; int j; A() {} A(const A& soc): s(soc.s->Clone()), i(soc.i), j(soc.j) {} }; I always have to remember that if I add another variable int k to the class, I'll also have to add it in the initialization list k(soc.k) and sometimes in the destructor too. I've had to add/remove member variables so many times and it's really annoying to forget about the copying in the initialization list and finding the omission much much later