Meta programming: Static assert

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.

You may also like...

Leave a Reply