Re: C++ keywords in headers (was Re: [GENERAL] #include <funcapi.h>)
Peter Geoghegan <peter.geoghegan86@gmail.com>
From: Peter Geoghegan <peter.geoghegan86@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Magnus Hagander <magnus@hagander.net>,
Andrew Dunstan <andrew@dunslane.net>, Alvaro Herrera <alvherre@commandprompt.com>, Peter Eisentraut <peter_e@gmx.net>, Craig Ringer <craig@postnewspapers.com.au>, Elliot Chance <elliotchance@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2010-12-27T19:13:33Z
Lists: pgsql-hackers
I hope that we don't make the mistake of not checking for collisions with C++0x keywords, for which GCC 4.3+ has partial support. The new standard is almost complete, so it will probably become a lot more relevant soon. There are quite a few new keywords in C++0x, including: constexpr decltype nullptr static_assert Perhaps we should add -std=c++0x to the g++ command in cpluspluscheck.sh . Since C++0x is “almost 100-percent compatible with the existing Standard C++” according to no less an authority than Bjarne Stroustrup, this seems sensible. -- Regards, Peter Geoghegan