Go to the documentation of this file.
11 #ifndef __SYS_StaticAssert__
12 #define __SYS_StaticAssert__
18 #if (__cplusplus >= 201103L) || (_MSC_VER >= 1700)
21 # define SYS_STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS__)
22 # define SYS_STATIC_ASSERT_MSG(...) static_assert(__VA_ARGS__)
24 # include <hboost/static_assert.hpp>
25 # define SYS_STATIC_ASSERT(expr) HBOOST_STATIC_ASSERT(expr)
26 # define SYS_STATIC_ASSERT_MSG(expr, msg) HBOOST_STATIC_ASSERT_MSG(expr, msg)
32 #define SYS_UNIMPLEMENTED_TEMPLATE(T) \
33 SYS_STATIC_ASSERT_MSG(sizeof(T) == 0, "Unimplemented template function.")
35 #endif // __SYS_StaticAssert__