Boost logo

Boost Users :

Subject: Re: [Boost-users] [wave] fail to parse variadics macro
From: Edward Diener (eldiener_at_[hidden])
Date: 2014-04-01 16:21:48


On 4/1/2014 3:51 PM, Eric Niebler wrote:
> On 03/31/2014 03:13 PM, Steven Watanabe wrote:
>> AMDG
>>
>> On 03/31/2014 12:46 PM, gag maker wrote:
>>> However, when I try to feed translation unit to wave driver it reports following error:
>>> .../compiler.h:32:1: error: ill formed preprocessor directive: #define __builtin_warning(x, y...) (1)
>>>
>>
>> Shouldn't that be
>>
>> #define __builtin_warning(x, y, ...)
>
> I thought the comma before the ... was optional.

My own interpretation of 16.3 paragraph 10 of the 2011 C++ standard
(INCITS/ISO/IEC 14882-2011[2012]), given the 3rd #define listed there,
is that the comma before the ... is not optional. Is there a further C++
standard or addendum for 2014 that has changed this ?


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