Thread

  1. Re: Type assertions without GCC builtins

    Jelte Fennema-Nio <postgres@jeltef.nl> — 2025-12-09T14:45:43Z

    On Tue, 9 Dec 2025 at 13:43, Jelte Fennema-Nio <postgres@jeltef.nl> wrote:
    > You mean use const_cast in c++ instead of a C-style cast? Would you
    > still want to keep the static asserts.
    
    I now understand that you meant to not remove these lines:
    -#if defined(__cplusplus)
    -#define unconstify(underlying_type, expr) const_cast<underlying_type>(expr)
    -#define unvolatize(underlying_type, expr) const_cast<underlying_type>(expr)
    
    So like the attached. I think that makes sense.