vrshoot

diff libs/assimp/boost/static_assert.hpp @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/assimp/boost/static_assert.hpp	Sat Feb 01 19:58:19 2014 +0200
     1.3 @@ -0,0 +1,20 @@
     1.4 +
     1.5 +#ifndef AI_BOOST_STATIC_ASSERT_INCLUDED
     1.6 +#define AI_BOOST_STATIC_ASSERT_INCLUDED
     1.7 +
     1.8 +#ifndef BOOST_STATIC_ASSERT
     1.9 +
    1.10 +namespace boost {
    1.11 +	namespace detail {
    1.12 +
    1.13 +		template <bool b>  class static_assertion_failure;
    1.14 +		template <>        class static_assertion_failure<true> {};
    1.15 +	}
    1.16 +}
    1.17 +
    1.18 +
    1.19 +#define BOOST_STATIC_ASSERT(eval) \
    1.20 +{boost::detail::static_assertion_failure<(eval)> assert_dummy;(void)assert_dummy;}
    1.21 +
    1.22 +#endif
    1.23 +#endif // !! AI_BOOST_STATIC_ASSERT_INCLUDED