Re: Type assertions without GCC builtins

Поиск
Список
Период
Сортировка
От Jelte Fennema-Nio
Тема Re: Type assertions without GCC builtins
Дата
Msg-id DETRMJMKIDM8.3BE573TTUBI04@jeltef.nl
обсуждение исходный текст
Ответ на Re: Type assertions without GCC builtins  (Jelte Fennema-Nio <postgres@jeltef.nl>)
Список pgsql-hackers
On Tue, 9 Dec 2025 at 13:43, Jelte Fennema-Nio <postgres@jeltef.nl> wrote:
> You mean use const_cast in c++ instead of a C-style cast? Would you
> still want to keep the static asserts.

I now understand that you meant to not remove these lines:
-#if defined(__cplusplus)
-#define unconstify(underlying_type, expr) const_cast<underlying_type>(expr)
-#define unvolatize(underlying_type, expr) const_cast<underlying_type>(expr)

So like the attached. I think that makes sense.

Вложения

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