
5 Jun
2007
5 Jun
'07
9:17 p.m.
Eric Niebler wrote:
Arkadiy Vertleyb wrote: [...]
Unfortunately not every macro can be nested. IIUC, by default the preprocessor does not allow it. For some of macros special code is implemented inside Boost PP to allow nesting. If you use BOOST_PP_REPEAT, for instance, you should not have any problems.
That cannot be the answer. The sole reason that BOOST_PP_SEQ_FOR_EACH_R (note the trailing _R) exists is so that it can be reentered, IIUC. Is this a bug?
BOOST_PP_SEQ_FOR_EACH_R is just for efficiently reentering BOOST_PP_FOR, bypassing the automatic R detection. None of the higher level constructs can be reentered by them selfs. -- Daniel Wallin Boost Consulting www.boost-consulting.com