Re: Make copyObject work in C++

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Make copyObject work in C++
Дата
Msg-id e3213d37-f28c-4836-9daa-5e2ba20a7c49@eisentraut.org
обсуждение исходный текст
Ответ на Re: Make copyObject work in C++  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Make copyObject work in C++
Список pgsql-hackers
On 07.12.25 20:45, Tom Lane wrote:
> Hmm, this only fixes the one use-case.  Admittedly we have only one
> use-case, but as soon as we have another we'll have a new problem.
> How about instead modifying the macro?  Maybe something like this
> in c.h (untested):
> 
> #ifdef __cplusplus
> #undef typeof
> #define typeof decltype
> #define HAVE_TYPEOF 1
> #endif

AFAICT, both gcc and clang support typeof in C++ mode as well.  So this 
kind of renaming could be confusing.



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