35 #ifndef _BLAZE_UTIL_STATICASSERT_H_
36 #define _BLAZE_UTIL_STATICASSERT_H_
116 template<
int >
struct STATIC_ASSERTION_TEST {};
131 template<
bool >
struct STATIC_ASSERTION_FAILED;
132 template<>
struct STATIC_ASSERTION_FAILED<true> {
enum { value = 1 }; };
143 #define BLAZE_STATIC_ASSERT(expr) \
144 typedef ::blaze::STATIC_ASSERTION_TEST< ::blaze::STATIC_ASSERTION_FAILED< (expr) != 0 >::value > \
145 BLAZE_JOIN( BLAZE_STATIC_ASSERTION_TYPEDEF, __LINE__ )
Header file for compile time constraints.