P4021R2 — compile_assert - an assert that evaluates at compile time
Jonathan Grant
EWG
Revisions R2Apr 2026R1Apr 2026R0Feb 2026
`compile_assert()` provides a way to specify constraint predicates that are validated at compile time and reported to the user via a diagnostic. This proposal specifies the syntax but not the method used to determine a constraint failure.