Subject: Re: [boost] compile-time for-loop
From: joel (joel.falcou_at_[hidden])
Date: 2009-09-01 04:25:13
klaus triendl wrote:
> I wonder whether a compile-time for-loop is useful enough so that it would
> get included in the mpl library;
> it's very similar to what fold does but it can be used for computations with
> types other than sequence containers.
Well, fold is far more generic than for. I can't see, in a
meta-programming context where side-effects don't occur, when having for_
is needed when we have fold_.
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk