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 17445.1583617488@sss.pgh.pa.us
Whole thread Raw
In response to Refactor compile-time assertion checks for C/C++  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Refactor compile-time assertion checks for C/C++  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> As of [1], I have been playing with the compile time assertions that
> we have for expressions, declarations and statements.  And it happens
> that it is visibly possible to consolidate the fallback
> implementations for C and C++.  Attached is the result of what I am
> getting at.  I am adding this patch to next CF.  Thoughts are
> welcome.

cfbot reports this doesn't work with MSVC.  Not sure why --- maybe
it defines __cpp_static_assert differently than you're expecting?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: pg_ls_tmpdir to show directories and shared filesets (andpg_ls_*)
Next
From: Tom Lane
Date:
Subject: Re: ALTER TEXT SEARCH DICTIONARY tab completion