| От | Tom Lane |
|---|---|
| Тема | Re: C++ Headers |
| Дата | |
| Msg-id | 7594.990318862@sss.pgh.pa.us обсуждение |
| Ответ на | Re: C++ Headers (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Список | pgsql-hackers |
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> The only mention I see of this is in c.h:
> #ifndef __cplusplus
> #ifndef bool
> typedef char bool;
> #endif /* ndef bool */
> #endif /* not C++ */
> If you need more cplusplus stuff, lets figure it out and add it.
Actually, that portion of c.h is a time bomb that is likely to blow up
in the face of some poor C++ user. There's no guarantee that a C++
compiler's built-in bool type will be compatible with "char", is there?
If it happened to be, say, same size as "int", then a C++ module
would interpret lots of things differently from a C module.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера