Re: [PATCH] Optional escaped commas in macros

2015-10-28 Thread Daniel Gutson
On Wed, Oct 28, 2015 at 11:58 AM, Joseph Myers wrote: > On Wed, 28 Oct 2015, Daniel Gutson wrote: > >> I presented the issue in the WG21 std-proposal mailing list and the general >> consensus was that I should ask WG14 first. The problem is that this issue >> is C++ only so I'm kind of stuck. Anyw

Re: [PATCH] Optional escaped commas in macros

2015-10-28 Thread Joseph Myers
On Wed, 28 Oct 2015, Daniel Gutson wrote: > I presented the issue in the WG21 std-proposal mailing list and the general > consensus was that I should ask WG14 first. The problem is that this issue > is C++ only so I'm kind of stuck. Anyway I already asked the convener about > this (David Keaton) a

Re: [PATCH] Optional escaped commas in macros

2015-10-28 Thread Daniel Gutson
On Tue, Oct 27, 2015 at 7:30 PM, Joseph Myers wrote: Hello Joseph. > On Tue, 27 Oct 2015, Andres Tiraboschi wrote: > >> While we start a discussion with the C committee regarding the standarization >> of this feature, we think that this is a useful nonstandard addition to be >> early adopted. >

Re: [PATCH] Optional escaped commas in macros

2015-10-27 Thread Joseph Myers
On Tue, 27 Oct 2015, Andres Tiraboschi wrote: > While we start a discussion with the C committee regarding the standarization > of this feature, we think that this is a useful nonstandard addition to be > early adopted. Are you raising the issue with WG14 in Kona this week? I'd be wary of this

Re: [PATCH] Optional escaped commas in macros

2015-10-27 Thread Andres Tiraboschi
2015-10-27 16:35 GMT-03:00 Andres Tiraboschi : > This patch is for gcc-5.2.0 adds the XXX option to the preprocessor Sorry I forgot to clarify that fmacro-escaped-commas is the option name. Thanks, Andrés.

[PATCH] Optional escaped commas in macros

2015-10-27 Thread Andres Tiraboschi
This patch is for gcc-5.2.0 adds the XXX option to the preprocessor that enables to escape commas when passing macro arguments. This feature is useful in C++ when the macro argument is a template with more than one argument, and adding extra ( ) is not possible, as shown in this example: templ