Meta programming: Static assert

code

Syntax

static_assert evaluates an expression at compile time and throw an error in case it fails. The first parameter is a boolean condition and the second one is the string that appears in the IDE in case the condition is not valid.

Leave a comment

Your email address will not be published.