Re: [GENERAL] C++ port of Postgres - Mailing list pgsql-hackers

From Andrew Gierth
Subject Re: [GENERAL] C++ port of Postgres
Date
Msg-id 87a8gbjtxr.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: [GENERAL] C++ port of Postgres  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [GENERAL] C++ port of Postgres  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
>>>>> "Robert" == Robert Haas <robertmhaas@gmail.com> writes:
Robert> Hmm, so sizeof() has different semantics in C vs. C++?

No. '1' has different semantics in C vs C++. (In C, '1' is an int,
whereas in C++ it's a char. It so happens that (sizeof '1') is the only
case which is valid in both C and C++ where this makes a difference.)

-- 
Andrew (irc:RhodiumToad)



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: PATCH: Exclude additional directories in pg_basebackup
Next
From: Aleksander Alekseev
Date:
Subject: Re: [Patch] RBTree iteration interface improvement