Boost logo

Boost :

From: Daniel Wallin (daniel_at_[hidden])
Date: 2007-06-05 17:17:17


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk