vrshoot
annotate libs/assimp/boost/static_assert.hpp @ 1:e7ca128b8713
looks nice :)
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Feb 2014 00:35:22 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 |
nuclear@0 | 2 #ifndef AI_BOOST_STATIC_ASSERT_INCLUDED |
nuclear@0 | 3 #define AI_BOOST_STATIC_ASSERT_INCLUDED |
nuclear@0 | 4 |
nuclear@0 | 5 #ifndef BOOST_STATIC_ASSERT |
nuclear@0 | 6 |
nuclear@0 | 7 namespace boost { |
nuclear@0 | 8 namespace detail { |
nuclear@0 | 9 |
nuclear@0 | 10 template <bool b> class static_assertion_failure; |
nuclear@0 | 11 template <> class static_assertion_failure<true> {}; |
nuclear@0 | 12 } |
nuclear@0 | 13 } |
nuclear@0 | 14 |
nuclear@0 | 15 |
nuclear@0 | 16 #define BOOST_STATIC_ASSERT(eval) \ |
nuclear@0 | 17 {boost::detail::static_assertion_failure<(eval)> assert_dummy;(void)assert_dummy;} |
nuclear@0 | 18 |
nuclear@0 | 19 #endif |
nuclear@0 | 20 #endif // !! AI_BOOST_STATIC_ASSERT_INCLUDED |