Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2003-04-10 18:23:24

I wonder if our indispensable PP library could provide some kind of lambda
facility that would allow one to do inline composition of macro functions,
along the lines of the MPL (ideally) or Boost.Bind. For instance, instead of

    #define DECL(z, n, text) text ## n = n;

    BOOST_PP_REPEAT(5, DECL, int x)

I would very much like to be able to write

        , int x

or something similar. I understand that it's quite a challenge to come up
with such facility, but if we could, it would make an order of magnitude
difference in the library's usability/power, IMO (if MPL's history is any


Boost list run by bdawes at, gregod at, cpdaniel at, john at