Dataflow Runtime API  3.1.1.0
STATIC_ASSERTION_FAILURE< bool > Struct Template Reference

Check at compile time if a condition is true. More...

Detailed Description

template<bool>
struct STATIC_ASSERTION_FAILURE< bool >

Check at compile time if a condition is true.

Usage: ASSERT_COMPILER(sizeof(int) == 4) Implementation: Tries to define an array type inside a block scope. In case the condition fails the array will have a negative size. This should be detected by every compiler and trigger a compile time error

Parameters
conditionThis assertion fails if the condition evaluates to false Interface STATIC_ASSERTION_FAILURE

The documentation for this struct was generated from the following file: