Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In a static assert declaration, the constant-expression is a constant expression that can be contextually converted to bool at compile time. If the value of the expression when converted is true, the declaration has no effect. Otherwise the program is ill-formed, and a diagnostic message (which includes the text of the string-literal) is issued at compile time. For example:

...