Blaze 3.9
StaticAssert.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_STATICASSERT_H_
36#define _BLAZE_UTIL_STATICASSERT_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <blaze/util/Suffix.h>
44
45
46namespace blaze {
47
48//=================================================================================================
49//
50// COMPILE TIME ASSERTION
51//
52//=================================================================================================
53
54//*************************************************************************************************
103//*************************************************************************************************
104
105
106//*************************************************************************************************
112#define BLAZE_STATIC_ASSERT(expr) \
113 static_assert( expr, "Compile time condition violated" )
114//*************************************************************************************************
115
116
117//*************************************************************************************************
123#define BLAZE_STATIC_ASSERT_MSG(expr,msg) \
124 static_assert( expr, msg )
125//*************************************************************************************************
126
127} // namespace blaze
128
129#endif
Header file for compile time constraints.