Stuart Dootson wrote :
Well, how about this (using you definition of A):
typedef std::vector<A> As;
typedef int A::*Setter;
[...]
Such a solution only works if all member variables are ints.
If it needs to work with any type, boost::any could be used.