From 431fe7bd8e75d379965a90c6763da483fac80f1a Mon Sep 17 00:00:00 2001 From: jwellbelove Date: Mon, 8 Dec 2014 20:30:12 +0000 Subject: [PATCH] Modified static assert macros --- static_assert.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static_assert.h b/static_assert.h index 503686ad..6d0831a2 100644 --- a/static_assert.h +++ b/static_assert.h @@ -32,13 +32,13 @@ SOFTWARE. #elif defined(COMPILER_GCC) #define STATIC_ASSERT(Condition, Message) static_assert(Condition, Message) #else - template + template struct STATIC_ASSERTION_FAILURE; - template - struct STATIC_ASSERTION_FAILURE {}; + template <> + struct STATIC_ASSERTION_FAILURE {}; - #define STATIC_ASSERT(Condition, Message) enum { assertdummy = sizeof(STATIC_ASSERTION_FAILURE<(bool)(Condition), Message>) } + #define STATIC_ASSERT(Condition, Message) enum { assertdummy = sizeof(STATIC_ASSERTION_FAILURE<(bool)(Condition)>) } #endif #endif