Re: C++ keywords in headers (was Re: [GENERAL] #include )
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: C++ keywords in headers (was Re: [GENERAL] #include |
| Дата | |
| Msg-id | 18101.1293474097@sss.pgh.pa.us обсуждение |
| Ответ на |
Re: C++ keywords in headers (was Re: [GENERAL] #include |
| Ответы |
Re: C++ keywords in headers (was Re: [GENERAL] #include |
| Список | pgsql-hackers |
BTW, the cpluspluscheck script invokes g++ with -fno-operator-names,
saying
# -fno-operator-names omits the definition of bitand and bitor, which# collide with varbit.h. Could be fixed, if one
wereso inclined.
I just confirmed that those two function definitions are the only issues
that currently show up if one removes the switch. Now, I'm not that
concerned about whether C++ users can include varbit.h ... but if we're
really going to use this technique to check whether C++ can include
headers, I think we've got to get rid of that switch, or we'll get
bitten elsewhere.
I propose renaming bitand() and bitor() to bit_and and bit_or() ...
any objections?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера