| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] static assertions in C++ |
| Дата | |
| Msg-id | 28813.1513030370@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [HACKERS] static assertions in C++ (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>) |
| Ответы |
Re: [HACKERS] static assertions in C++
|
| Список | pgsql-hackers |
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 12/11/17 16:45, Tom Lane wrote:
>> (BTW, why is it that we can't fall back on the negative-width-bitfield
>> trick for old g++?)
> The complaint is
> error: types may not be defined in 'sizeof' expressions
Hmm, well, surely there's more than one way to do that; the sizeof
is just a convenient way to wrap it in C. Wouldn't a typedef serve
just as well?
(Googling the topic shows that this wheel has been invented
before, BTW.)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера