Method _Static_assert()
- Method
_Static_assert
void_Static_assert(intconstant_expression,stringconstant_message)- Description
Perform a compile-time assertion check.
If
constant_expressionis false, a compiler error message containingconstant_messagewill be generated.- Note
Note that the function call compiles to the null statement, and thus does not affect the run-time.
- See also
cpp::static_assert