Boost logo

Boost Users :

Subject: Re: [Boost-users] class composition
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2009-01-13 15:14:17


Hicham Mouline a écrit :
> You mean I would have to literally actually write, if for e.g. I have 20
> types,
>
> class C {
> ....
> boost::fusion::at_c<0>(v);
> boost::fusion::at_c<1>(v);
> ...
> boost::fusion::at_c<19>(v);
> }
>
No

You instantiate the fusion object, then for accessing the ith member,
you use at_c

-- 
___________________________________________
Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

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