|
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:
pp_array.cc
-----------
#include <boost/preprocessor.hpp>
//#define BOOST_PP_TUPLE_REM_0() // nothing
#define ARRAY (3, (a, x, c))
BOOST_PP_ARRAY_REPLACE(ARRAY, 1, b)
via:
g++ -E -P -I /... pp_array.cc
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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk