Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6616: boost preprocessor bug in 1.49
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-04 15:07:10
#6616: boost preprocessor bug in 1.49
-------------------------------+--------------------------------------------
Reporter: sni4ok@⦠| Owner: no-maintainer
Type: Bugs | Status: new
Milestone: To Be Determined | Component: preprocessor
Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by anonymous):
Yes, the boost preprocessor library changed behavior from 1.48.0 to
1.49.0.
For Visual C++ 8.0, preprocessing this code:
{{{#!cpp
#include <boost/preprocessor/tuple/to_list.hpp>
BOOST_PP_TUPLE_TO_LIST(2, (a, b))
BOOST_PP_TUPLE_TO_LIST(1, (a))
BOOST_PP_TUPLE_TO_LIST(0, ())
}}}
used to give this output:
{{{#!cpp
(a, (b, BOOST_PP_NIL))
(a, BOOST_PP_NIL)
BOOST_PP_NIL
}}}
but for 1.49.0 the compiler give these warnings:
a.cpp(5) : warning C4003: not enough actual parameters for macro
'BOOST_PP_TUPLE_TO_LIST_1'
a.cpp(5) : warning C4003: not enough actual parameters for macro
'BOOST_PP_TUPLE_TO_LIST_1'
and this output:
{{{#!cpp
(a, (b, BOOST_PP_NIL))
(a, BOOST_PP_NIL)
(, BOOST_PP_NIL)
}}}
I have similar problems for BOOST_PP_TUPLE_TO_SEQ() and for Clang 3.1.
These
problems still exist for the latest version of boost (1.52.0).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6616#comment:1> 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:11 UTC