Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem with variadic BOOST_PP_TUPLE_REM in Clang
From: Edward Diener (eldiener_at_[hidden])
Date: 2013-11-13 23:41:10


On 11/13/2013 4:28 PM, Jeremiah Willcock wrote:
> When using Clang version "Apple LLVM version 5.0 (clang-500.2.79) (based
> on LLVM 3.3svn)" in C++11 mode, the code:
>
> #include <boost/preprocessor.hpp>
> BOOST_PP_TUPLE_REM()(foo(bar, baz) const)
>
> is not expanded correctly. The second line expands to:
>
> BOOST_PP_TUPLE_REM_(foo(bar, baz) const)
>
> while on GCC 4.9, it expands to:
>
> foo(bar, baz) const
>
> Is there a known issue with this macro on Clang?

When Paul created the code for automatically determining if a compiler
has variadic macro support he did not include clang as among the
compilers for which BOOST_PP_VARIADICS is 1 ( variadic support is on ).
Please try specifically turning on variadic macro support for clang by
defining BOOST_PP_VARIADICS=1 when you use the clang compiler.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net