Re: Make copyObject work in C++ - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: Make copyObject work in C++
Date
Msg-id CAGECzQShDn3mg7uT4ERa0ABdiF=jjNz1-PJBxTYDro49ruYK5g@mail.gmail.com
Whole thread Raw
In response to Re: Make copyObject work in C++  (David Geier <geidav.pg@gmail.com>)
List pgsql-hackers
On Mon, 8 Dec 2025 at 09:33, David Geier <geidav.pg@gmail.com> wrote:
> Since C++11 there's std::remove_const which can be used as
> std::remove_const<decltype(type)>::type.
>
> I'm not aware of anything pre C++11, except for rolling your own variant
> of std::remove_const via template specialization.

I think depending on C++11 sounds fine, since we're also depending on
C11 and people tend to use much more recent C++ versions than C
versions (so probably we could even require something higher).



pgsql-hackers by date:

Previous
From: David Geier
Date:
Subject: Re: Simplify the way of appending comma to stringInfo
Next
From: Jakub Wartak
Date:
Subject: Parallel query: Use TopTransactionContext for ReinitializeParallelDSM()