mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
better Or
implementation
i don't think i use it anymore though...
This commit is contained in:
parent
423e44d6dc
commit
e5bb46afda
|
@ -51,7 +51,7 @@ template<typename... Args>
|
|||
struct Or : Bool<true> {};
|
||||
|
||||
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>
|
||||
using EnableIf = typename std::enable_if<And<Args...>::value, int>::type;
|
||||
|
|
Loading…
Reference in New Issue
Block a user