Boost logo

Boost Users :

Subject: Re: [Boost-users] generate an n-deep runtime for loop
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-01-23 08:56:17


----- Original Message -----
From: "joel falcou" <joel.falcou_at_[hidden]>
To: <boost-users_at_[hidden]>
Sent: Friday, January 22, 2010 1:41 AM
Subject: Re: [Boost-users] generate an n-deep runtime for loop

> Hicham Mouline wrote:
>> <snip>
>> is this possible?
> Yes,
> you'll need to build a recursive function that takes your vector and an
> mpl::int_ as a n arguments, geenrate a for loop on current fusion element
> then call itself while incrementing the mpl::int_. Terminal case stop
> the for loop generation and generate the inner body.

I have a fusion sequence (const Seq& seq), and during the recursion process,
I want to process the front element, then pass to the next step, the
remainder of the seq.

I can't seem to find the algorithm for this,

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