C++ Logo


Advanced search

Re: [std-proposals] The Oxford variadic comma

From: Christof Meerwald <cmeerw_at_[hidden]>
Date: Wed, 28 Feb 2024 17:42:17 +0100
On Wed, Feb 28, 2024 at 04:11:23PM +0100, Jan Schultke via Std-Proposals wrote:
> > so that would deprecate both of these:

  void f(int ...);
  void g(int p ...);

> No, I don't think it does. I say "ellipsis parameter", which is an
> parameter that is an ellipsis (i.e. C variadics), not "an ellipsis
> within the parameter list".

Now I am confused, the declarations have the same function type. The
difference is that there is no disambiguation involved when parsing
the second declaration.

> Your proposed wording is more concise, I like that; and yeah, I've
> missed Annex D.

Both declarations (above) would be deprecated with my wording (and I
think they should both be deprecated). Your wording would only
deprecate the first declaration.


https://cmeerw.org                             sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org

Received on 2024-02-28 16:42:19