Subject: [Boost-bugs] [Boost C++ Libraries] #3552: concatenation does not work with BOOST_PP_COMMA() with g++
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-24 11:07:47
#3552: concatenation does not work with BOOST_PP_COMMA() with g++
-----------------------------------+----------------------------------------
Reporter: mkraemer@⦠| Owner: no-maintainer
Type: Support Requests | Status: new
Milestone: Boost 1.41.0 | Component: preprocessor
Version: Boost 1.40.0 | Severity: Problem
Keywords: |
-----------------------------------+----------------------------------------
The concatenation of a token with a comma does not work with g++
Example:[[BR]]
{{{
cmd>cat test.cpp
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/punctuation/comma.hpp>
BOOST_PP_CAT(test,BOOST_PP_COMMA())
}}}
=== g++ v3.4.4 ===
{{{
cmd>g++-3 --version
g++-3 (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
cmd>g++-3 -E -P -I D:\Development\boost\1.40.0 test.cpp
test.cpp:3:35: macro "BOOST_PP_CAT_I" passed 3 arguments, but takes just 2
BOOST_PP_CAT_I;
}}}
=== g++ 4.3.2 ===
{{{
cmd>g++-4 --version
g++-4 (GCC) 4.3.2 20080827 (beta) 2
cmd>g++-4 -E -P -I D:\Development\boost\1.40.0 test.cpp
test.cpp:3:35: error: macro "BOOST_PP_CAT_I" passed 3 arguments, but takes
just 2
BOOST_PP_CAT_I;
}}}
=== Wheras MS VisualStudio 2005 works ===
{{{
cmd>cl /E -I D:\Development\boost\1.40.0 test.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for
80x86
Copyright (C) Microsoft Corporation. All rights reserved.
...
#line 3 "test6.cpp"
test,
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3552> 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:01 UTC