Re: Refactor compile-time assertion checks for C/C++ - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Refactor compile-time assertion checks for C/C++
Date
Msg-id 18438.1584937368@sss.pgh.pa.us
Whole thread Raw
In response to Re: Refactor compile-time assertion checks for C/C++  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Refactor compile-time assertion checks for C/C++
List pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> On Sat, Mar 21, 2020 at 07:22:41PM -0400, Tom Lane wrote:
>> Maybe we should just revert b7f64c64d instead of putting more time
>> into this.  It's looking like we're going to end up with four or so
>> implementations no matter what, so it's getting hard to see any
>> real benefit.

> Indeed.  I have tried a couple of other things I could think of, but I
> cannot really get down to 3 implementations, so there is no actual
> benefit.
> I have done a complete revert to keep the history cleaner for release
> notes and such, including this part:
> - * On recent C++ compilers, we can use standard static_assert().
> Don't you think that we should keep this comment at the end?  It is
> still true.

Yeah, the comment needs an update; but if we have four implementations
then it ought to describe each of them, IMO.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Refactor compile-time assertion checks for C/C++
Next
From: Michael Paquier
Date:
Subject: Re: type of some table storage params on doc