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