[Boost-bugs] [Boost C++ Libraries] #4090: Macroses BOOST_PP_SEQ_FOR_EACH_*R are not reenterable

Subject: [Boost-bugs] [Boost C++ Libraries] #4090: Macroses BOOST_PP_SEQ_FOR_EACH_*R are not reenterable
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-12 17:22:44


#4090: Macroses BOOST_PP_SEQ_FOR_EACH_*R are not reenterable
-------------------------------------+--------------------------------------
 Reporter: Andrey <andry@…> | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: | Component: preprocessor
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 Sample:
 #define MY_SEQ (1)(12)(123)

 #define GENERATOR_2(r,data,i,elem) i

 #define GENERATOR_1(r,data,i,elem)
 BOOST_PP_SEQ_FOR_EACH_I_R(r,GENERATOR_2,*,MY_SEQ)

 #define GENERATE() BOOST_PP_SEQ_FOR_EACH_I(GENERATOR_1,*,MY_SEQ)

 GENERATE()

 Visual Studio 2005 SP1 compiler raise error:
 error C2065: 'GENERATOR_2' : undeclared identifier

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4090>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC