Boost logo

Boost :

Subject: [boost] [preprocessor] ARRAY_REPLACE bug?
From: Mostafa (mostafa_working_away_at_[hidden])
Date: 2013-07-25 05:10:17

On Windows 7/Cygwin, using boost 1.53, preprocessing the following snippet:
       #include <boost/preprocessor.hpp>

       //#define BOOST_PP_TUPLE_REM_0() // nothing

       #define ARRAY (3, (a, x, c))

      g++ -E -P -I /...

gives the following incorrect result:
       (3, (BOOST_PP_TUPLE_REM_0 () a, b , c))

Uncommenting the pound define in the snippet gives the correct result for
the preprocessor.

Is this a bug?

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