| From: | Jelte Fennema-Nio <postgres(at)jeltef(dot)nl> |
|---|---|
| To: | David Geier <geidav(dot)pg(at)gmail(dot)com> |
| Cc: | Peter Eisentraut <peter(at)eisentraut(dot)org>, 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:52:17 |
| Message-ID: | CAGECzQShDn3mg7uT4ERa0ABdiF=jjNz1-PJBxTYDro49ruYK5g@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, 8 Dec 2025 at 09:33, David Geier <geidav(dot)pg(at)gmail(dot)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).
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jakub Wartak | 2025-12-08 09:07:25 | Parallel query: Use TopTransactionContext for ReinitializeParallelDSM() |
| Previous Message | David Geier | 2025-12-08 08:46:44 | Re: Simplify the way of appending comma to stringInfo |