1 #ifndef POSIXX_STATIC_ASSERT_HPP_
2 #define POSIXX_STATIC_ASSERT_HPP_
4 template <bool x> struct POSIXX_STATIC_ASSERTION_FAILURE;
5 template <> struct POSIXX_STATIC_ASSERTION_FAILURE<true> { enum {value = 1}; };
6 #define static_assert( B, M ) \
7 enum { static_assert_enum_ ## __LINE__ \
8 = sizeof(POSIXX_STATIC_ASSERTION_FAILURE< (bool)( B ) >) }
10 #endif // POSIXX_STATIC_ASSERT_HPP_