mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-09 11:09:32 +01:00
Fixes 'not' keyword that is not supported by Visual Studio by default
This commit is contained in:
parent
28294fa754
commit
009c4005b2
@ -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> {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user