Re: C++ keywords in headers (was Re: [GENERAL] #include <funcapi.h>)

From: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>, Elliot Chance <elliotchance(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: C++ keywords in headers (was Re: [GENERAL] #include <funcapi.h>)
Date: 2010-12-27 19:48:50
Message-ID: AANLkTi=UPNXk+iYnSQjyu2mu5eTznmKzv88WhLXfrbG0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 27 December 2010 19:17, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> [ shrug... ]  If it's not a keyword according to popularly available
> tools, then I really have zero interest in worrying about it.  This
> is an exercise in making the headers useful in practice, not in academic
> standards conformance.

It isn't academic and I'm not just being pedantic, because the
standard introduces many new, useful features. A lot of popular C++
libraries optionally use C++0x through the use of conditional
compilation. For example, my distro's libstdc++ standard library
(which is mostly header-based due to the fact that it is mostly
comprised of templates and inline functions) has many #ifdefs, so that
things like move constructors (a big performance win for standard
library containers) are available. It just seems prudent to assume
that if any of these pg headers are being included in C++ TUs, they
might well be using C++0x.

--
Regards,
Peter Geoghegan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2010-12-27 20:03:55 Re: C++ keywords in headers (was Re: [GENERAL] #include <funcapi.h>)
Previous Message Guillaume Lelarge 2010-12-27 19:46:10 Re: Working with v8.3.4 DB using v9.0.1 software

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2010-12-27 19:51:43 Re: Reduce lock levels for ADD and DROP COLUMN
Previous Message Tom Lane 2010-12-27 19:17:57 Re: C++ keywords in headers (was Re: [GENERAL] #include <funcapi.h>)