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
- 0001-Define-unconstify-and-unvolatize-for-C.patch (application/octet-stream) patch 0001
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
-
Define unconstify() and unvolatize() for C++.
- baf7c93ed583 17.0 landed