Boost logo

Boost Users :

Subject: Re: [Boost-users] fusion: work of 4 sequences at the same time
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-02-18 13:57:07


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Rutger ter Borg
> Sent: 18 February 2010 18:09
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] fusion: work of 4 sequences at the same time
>
> Hicham Mouline wrote:
>
> >
> > I could use boost::fusion::find to get an iterator and then get its
index,
> > but this doesn not look clean,
> >
> > Any ideas,
> >
>
> I would recommend to take a look at the zip_view stuff.
>
> Cheers,
>
> Rutger

Will do, thanks,

In the mean time, the fusion::vector4<> that fusion::zip manufactures is
made of const-ref of the types of the 4 sequences.
To change 1 of the sequences, I need to const_cast away the constness.

I guess zip_view addresses this constness issue,

Rds,


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