Re: Change copyObject() to use typeof_unqual - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: Change copyObject() to use typeof_unqual
Date
Msg-id DH2JQUIHV61C.X98B5WL6SUK1@jeltef.nl
Whole thread Raw
In response to Re: Change copyObject() to use typeof_unqual  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
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.

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Change copyObject() to use typeof_unqual
Next
From: "Jelte Fennema-Nio"
Date:
Subject: Re: Safer hash table initialization macro