Fixes 'not' keyword that is not supported by Visual Studio by default

This commit is contained in:
Milo Yip 2014-07-03 22:37:42 +08:00
parent 28294fa754
commit 009c4005b2

View File

@ -43,7 +43,7 @@ template <typename T> struct EnableIfCond<true, T> { typedef T Type; };
template <typename T> struct EnableIfCond<false, T> { /* empty */ };
template <bool Condition, typename T = void>
struct DisableIfCond : EnableIfCond<not Condition, T> {};
struct DisableIfCond : EnableIfCond<!Condition, T> {};
template <typename Condition, typename T = void>
struct EnableIf : EnableIfCond<Condition::Value, T> {};