Re: Refactor compile-time assertion checks for C/C++

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Refactor compile-time assertion checks for C/C++
Дата
Msg-id 17445.1583617488@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Refactor compile-time assertion checks for C/C++  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Refactor compile-time assertion checks for C/C++  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> As of [1], I have been playing with the compile time assertions that
> we have for expressions, declarations and statements.  And it happens
> that it is visibly possible to consolidate the fallback
> implementations for C and C++.  Attached is the result of what I am
> getting at.  I am adding this patch to next CF.  Thoughts are
> welcome.

cfbot reports this doesn't work with MSVC.  Not sure why --- maybe
it defines __cpp_static_assert differently than you're expecting?

            regards, tom lane



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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: pg_ls_tmpdir to show directories and shared filesets (andpg_ls_*)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ALTER TEXT SEARCH DICTIONARY tab completion