Method _Static_assert()
- Method _Static_assert
void
_Static_assert(int
constant_expression
,string
constant_message
)- Description
Perform a compile-time assertion check.
If
constant_expression
is false, a compiler error message containingconstant_message
will be generated.- Note
Note that the function call compiles to the null statement, and thus does not affect the run-time.
- See also