better Or implementation

i don't think i use it anymore though...
This commit is contained in:
PrincessNyanara 2014-06-09 01:36:41 -04:00 committed by Rapptz
parent 423e44d6dc
commit e5bb46afda

View File

@ -51,7 +51,7 @@ template<typename... Args>
struct Or : Bool<true> {}; struct Or : Bool<true> {};
template<typename T, typename... Args> template<typename T, typename... Args>
struct Or<T, Args...> : If<Not<T>, Or<Args...>, Bool<true>> {}; struct Or<T, Args...> : If<T, Bool<true>, Or<Args...>> {};
template<typename... Args> template<typename... Args>
using EnableIf = typename std::enable_if<And<Args...>::value, int>::type; using EnableIf = typename std::enable_if<And<Args...>::value, int>::type;