| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Jelte Fennema-Nio <postgres(at)jeltef(dot)nl> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
| Subject: | Re: Make copyObject work in C++ |
| Date: | 2025-12-08 08:00:55 |
| Message-ID: | e3213d37-f28c-4836-9daa-5e2ba20a7c49@eisentraut.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jelte Fennema-Nio | 2025-12-08 08:11:59 | Re: Make copyObject work in C++ |
| Previous Message | Peter Eisentraut | 2025-12-08 07:57:17 | Re: Make copyObject work in C++ |