]> git.llucax.com Git - software/posixx.git/blob - src/static_assert.hpp
Clean the tipc::sockaddr in the default constructor
[software/posixx.git] / src / static_assert.hpp
1 #ifndef POSIXX_STATIC_ASSERT_HPP_
2 #define POSIXX_STATIC_ASSERT_HPP_
3
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 ) >) }
9
10 #endif // POSIXX_STATIC_ASSERT_HPP_