Files
postgresql/config
Peter Eisentraut aa7c868523 Portable StaticAssertExpr
Use a different way to write StaticAssertExpr() that does not require
the GCC extension statement expressions.

For C, we put the static_assert into a struct.  This appears to be a
common approach.

We still need to keep the fallback implementation to support buggy
MSVC < 19.33.

For C++, we put it into a lambda expression.  (The C approach doesn't
work; it's not permitted to define a new type inside sizeof.)

Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://www.postgresql.org/message-id/flat/5fa3a9f5-eb9a-4408-9baf-403d281f8b10%40eisentraut.org
2026-03-06 09:27:54 +01:00
..
2026-03-06 09:27:54 +01:00
2024-10-01 07:23:45 -04:00
2026-01-01 13:24:10 -05:00
2025-04-09 12:41:54 +02:00
2020-07-24 10:42:08 +02:00
2012-08-21 23:42:43 -04:00
2010-09-20 22:08:53 +02:00
2023-12-20 09:44:37 +09:00
2025-08-04 14:06:58 +02:00
2026-02-23 13:34:22 -05:00
2019-01-18 08:38:34 +01:00