Boost logo

Boost Users :

From: Nico Galoppo (nico_at_[hidden])
Date: 2006-03-31 12:34:09


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_at_[hidden]
> 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

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