Boost logo

Boost Users :

Subject: Re: [Boost-users] [wave] fail to parse variadics macro
From: Eric Niebler (eniebler_at_[hidden])
Date: 2014-04-02 12:44:44


On 4/1/2014 1:21 PM, Edward Diener wrote:
> On 4/1/2014 3:51 PM, Eric Niebler wrote:
>> On 03/31/2014 03:13 PM, Steven Watanabe wrote:
>>> 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 ?

I must've been thinking of C-style varargs, where the comma is optional
before the .... Sorry for the noise.

Eric


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