From 3b265a638dc405d13927657ae81c8cd37f98c539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20M=C3=BCller?= Date: Tue, 28 Jul 2020 13:17:12 +0200 Subject: [PATCH] Fixed issue with pack expansion of alias template --- amdis/common/Logical.hpp | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/amdis/common/Logical.hpp b/amdis/common/Logical.hpp index 2a9d32ef..decbe539 100644 --- a/amdis/common/Logical.hpp +++ b/amdis/common/Logical.hpp @@ -18,35 +18,29 @@ namespace AMDiS // some boolean operations // --------------------------------------------------------------------------- - namespace Impl - { - template struct all_helper {}; - - } // end namespace Impl - template - using all_of_t = bool_t<(Bs &&...)>; + constexpr bool all_of_v = (Bs && ...); template - constexpr bool all_of_v = (Bs &&...); + using all_of_t = bool_t>; template using and_t = all_of_t; template - using none_of_t = bool_t; + constexpr bool any_of_v = (Bs || ...); template - constexpr bool none_of_v = !(Bs ||...); + using any_of_t = bool_t>; template - using any_of_t = bool_t<(Bs ||...)>; + using or_t = any_of_t; template - constexpr bool any_of_v = (Bs ||...); + constexpr bool none_of_v = !(Bs || ...); template - using or_t = any_of_t; + using none_of_t = bool_t>; template -- GitLab