Fix warning about static_assert being a future (TR1) keyword
This was SVN commit r6249.
This commit is contained in:
parent
afae8e6c7d
commit
0b32d1b674
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user