|
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
BOOST_PP_REPEAT(
5
, BOOST_PP_CAT(BOOST_PP_ARG_2, BOOST_PP_ARG_1) = BOOST_PP_ARG_1
, 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
indication).
Aleksey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk