1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-28 02:33:10 +03:00
Files
postgres/src/include
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-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-03-06 12:37:40 +09:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-02-27 10:53:47 +01:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-02-27 21:57:33 +01:00
2026-02-27 21:57:33 +01:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-03-05 16:22:57 -05:00
2026-03-06 09:27:54 +01:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-02-11 10:36:15 -06:00
2026-01-01 13:24:10 -05:00
2026-03-06 09:27:54 +01:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-02-26 13:50:24 +01:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00
2026-01-08 08:51:20 +01:00
2026-01-01 13:24:10 -05:00
2026-01-01 13:24:10 -05:00