Hello,
Near sure this is trivial, but I don't see it, and hope someone might
point out the obvious:
#include
#include
#include
#define OPERATOR(z, n, _) \
\
BOOST_PP_ENUM_PARAMS(n, T r)
/**/
#define BOOST_PP_LOCAL_MACRO(n) OPERATOR(_, n, _)
#define BOOST_PP_LOCAL_LIMITS(1, 3)
#include BOOST_PP_LOCAL_ITERATE()
#undef BOOST_PP_LOCAL_MACRO
#undef BOOST_PP_LOCAL_LIMITS
#undef OPERATOR
..The above works as expected:
T r0
T r0, T r1
T r0, T r1, T r2
However, I would like to replace "T" with the following instead:
std::pair
ie: I want to write something to the effect of:
BOOST_PP_ENUM_PARAMS(n, std::pair r)
Of course, BOOST_PP_ENUM_PARAMS now sees one too many arguments, and
errors. Any ideas on how to achieve this would be most appreciated.
With thanks in advance,
--
Manfred