Re: Change copyObject() to use typeof_unqual
Jelte Fennema <postgres@jeltef.nl>
From: "Jelte Fennema-Nio" <postgres@jeltef.nl>
To: "Peter Eisentraut" <peter@eisentraut.org>
Cc: "Daniel Gustafsson" <daniel@yesql.se>, "PostgreSQL Hackers"
<pgsql-hackers@postgresql.org>
Date: 2026-03-14T13:41:08Z
Lists: pgsql-hackers
Attachments
- v3-0001-Make-typeof-and-typeof_unqual-fallback-definition.patch (text/x-patch) patch v3-0001
On Sat, 14 Mar 2026 at 14:03, Peter Eisentraut <peter@eisentraut.org> wrote: > This doesn't appear to work in this example program: Ugh, I should not send emails end of day on a friday in a rush. Attached is fixed v3 which uses ::type instead. I was able to reproduce the compilation errors on my machine by using CXXFLAGS='-std=c++11' when configuring meson, and this patch fixes them. I think it would be good if we would run one of our CI jobs in c11 and c++11 (non-gnu) mode so we catch these kind of issues before hitting the build farm.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add some const qualifiers enabled by typeof_unqual change on copyObject
- 7724cb9935a9 19 (unreleased) landed
-
Hardcode typeof_unqual to __typeof_unqual__ for clang
- 2eb6cd327cae 19 (unreleased) landed
-
Clean up postgres_fdw/t/010_subscription.pl.
- f4af7849b3db 19 (unreleased) cited
-
Hardcode override of typeof_unqual for clang-for-bitcode
- 63275ce84d2f 19 (unreleased) landed
-
Make typeof and typeof_unqual fallback definitions work on C++11
- cd083b54bd67 19 (unreleased) landed
-
Change copyObject() to use typeof_unqual
- 59292f7aac72 19 (unreleased) landed
- 4cfce4e62c8f 19 (unreleased) landed
-
Fixes for C++ typeof implementation
- 9c05f152b5dd 19 (unreleased) landed
-
Support using copyObject in standard C++
- 1887d822f142 19 (unreleased) cited