Boost logo

Boost :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2006-01-14 21:26:23


"Tobias Schwinger" <tschwinger_at_[hidden]> wrote

> Arkadiy Vertleyb wrote:
> >
> > File iteration works good with typeof,
>
> > and you don't have to explicitly
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > specify IDs.
> ^^^^^^^^^^^^^^
>
> Curious question: does it work like this
>
> if IS_ITERATING then
> id <- 0
> for i <- 0, i < ITERATION_DEPTH
> id <- id * ITERATION_FINISH(i) + FRAME_ITERATION(i)
> id <- encode_full_id(BOOST_PP_COUNTER, id)
>
> ?

Not really...

There is nothing specific in typeof to handle this case. All you have to do
is to increment the registration group inside the iterated file, so that
each iteration uses its own registration group (and the same line numbers).

Regards,
Arkadiy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk