autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] C++11 keyword fallback


From: Paul Eggert
Subject: Re: [PATCH] C++11 keyword fallback
Date: Mon, 04 Feb 2013 08:23:18 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 02/04/13 00:51, Miles Bader wrote:
> I expect these days pretty much every significant compiler
> supports const anyway,

I think that was always true for C++, which is why the
issue never came up for 'const' and C++.  There were
a few old C programs that used 'const' as identifiers,
but they had to get changed for C89 anyway.  No old
.h files happened to use 'const' as an identifier, so
we lucked out.

In contrast, '#define final /**/' is likely to cause problems,
e.g., on Fedora 17, /usr/include/gcrypt-module.h does this:

extern "C" {

...

typedef struct gcry_md_spec
{
  ...
  gcry_md_final_t final;
  ...
} gcry_md_spec_t;

...

}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]