Re: [GENERAL] C++ port of Postgres

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [GENERAL] C++ port of Postgres
Дата
Msg-id CA+Tgmob=ST58jCTtm8e8t7iOzuMPt964sBTXh2ANkSAfPLQhcA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] C++ port of Postgres  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-hackers
On Wed, Aug 17, 2016 at 11:36 AM, Andrew Gierth
<andrew@tao11.riddles.org.uk> wrote:
>>>>>> "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.)

OK.  Doesn't seem like a big problem.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Assertion failure in REL9_5_STABLE
Следующее
От: Robert Haas
Дата:
Сообщение: Re: drop src/backend/port/darwin/system.c ?