Boost logo

Boost Users :

From: loufoque (mathias.gaunard_at_[hidden])
Date: 2006-03-31 03:42:29


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net