Boost logo

Boost :

Subject: Re: [boost] [preprocessor] nested for_each not working like expected
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-08-07 16:06:49


On 08/07/2013 12:48 PM, Eric Niebler wrote:
> On 13-08-07 11:58 AM, Nathan Ridge wrote:
>> According to [1], only BOOST_PP_FOR, BOOST_PP_WHILE, and BOOST_PP_REPEAT
>> are reentrant. Other looping macros, like SEQ_FOR_EACH, are not.
> Yes, but [2] indicates that SEQ_FOR_EACH is implemented in terms of FOR
> and has a _R version for reentry. Why is it provided if it doesn't work?

The _R version is for reentering BOOST_PP_FOR.
BOOST_PP_SEQ_FOR_EACH_R itself is not reentrant.

> [2]

In Christ,
Steven Watanabe

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