Re: unconstify()/unvolatize() vs g++/clang++

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-12-11T10:32:52Z
Lists: pgsql-hackers

Attachments

On Mon, Dec 11, 2023 at 10:17 PM Peter Eisentraut <peter@eisentraut.org> wrote:
> If you are slightly more daring, you can write an alternative definition
> in C++ using const_cast?

Oh, yeah, right, that works for my case.   I can't think of any
reasons not to do this, but IANAC++L.

Commits

  1. Define unconstify() and unvolatize() for C++.