1
0
forked from 0ad/0ad

Fix warning about static_assert being a future (TR1) keyword

This was SVN commit r6249.
This commit is contained in:
Ykkrosh 2008-07-19 00:13:53 +00:00
parent afae8e6c7d
commit 0b32d1b674

View File

@ -127,11 +127,11 @@ switch(x % 2)
*
* @param expression that is expected to evaluate to non-zero at compile-time.
**/
#define cassert(expr) typedef detail::static_assert<(expr)>::type UID__;
#define cassert(expr) typedef detail::static_assert_<(expr)>::type UID__;
namespace detail
{
template<bool> struct static_assert;
template<> struct static_assert<true>
template<bool> struct static_assert_;
template<> struct static_assert_<true>
{
typedef int type;
};