Re: Proposal: Add more compile-time asserts to expose inconsistencies.
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: "Smith, Peter" <peters@fast.au.fujitsu.com>
Cc: "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Tom Lane <tgl@sss.pgh.pa.us>, Michael Paquier <michael@paquier.xyz>, Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2019-10-27T14:45:13Z
Lists: pgsql-hackers
On 2019-10-27 11:44:54 +0000, Smith, Peter wrote: > From: Andres Freund <andres@anarazel.de> Sent: Sunday, 27 October 2019 12:03 PM > > I think it should work everywhere that has static assert. So we should need a separate configure check. > > Er, that's a typo right? I think you meant: "So we *shouldn't* need a separate configure check" Yes.
Commits
-
Add declaration-level assertions for compile-time checks
- f1f10a1ba9e1 13.0 landed
-
Add support for static assertions in C++
- a2c8e5cfdb9d 11.0 cited