Thanks Mathias! Do you have an example of how that would work? I have no experience with boost::any. --nico loufoque wrote:
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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- nico galoppo von borries | address: 105 creel st., chapel hill comp. graphics phd. student | north carolina, 27516 USA UNC, chapel hill | phone: +1 (919) 962-1898 (office) | +1 (919) 942-7609 (home) | email: nico at cs dot unc dot edu | homepage: http://www.ngaloppo.org