Commit 605d1fc1 authored by Müller, Felix's avatar Müller, Felix
Browse files

Merge branch 'issue/variadic_packs_bug' into 'master'

Fixed issue with pack expansion of alias template

See merge request !195
parents 80a33364 3b265a63
Pipeline #4525 failed with stage
in 15 seconds
......@@ -18,35 +18,29 @@ namespace AMDiS
// some boolean operations
// ---------------------------------------------------------------------------
namespace Impl
{
template <bool...> struct all_helper {};
} // end namespace Impl
template <bool... Bs>
using all_of_t = bool_t<(Bs &&...)>;
constexpr bool all_of_v = (Bs && ...);
template <bool... Bs>
constexpr bool all_of_v = (Bs &&...);
using all_of_t = bool_t<all_of_v<Bs...>>;
template <bool... Bs>
using and_t = all_of_t<Bs...>;
template <bool... Bs>
using none_of_t = bool_t<!(Bs ||...)>;
constexpr bool any_of_v = (Bs || ...);
template <bool... Bs>
constexpr bool none_of_v = !(Bs ||...);
using any_of_t = bool_t<any_of_v<Bs...>>;
template <bool... Bs>
using any_of_t = bool_t<(Bs ||...)>;
using or_t = any_of_t<Bs...>;
template <bool... Bs>
constexpr bool any_of_v = (Bs ||...);
constexpr bool none_of_v = !(Bs || ...);
template <bool... Bs>
using or_t = any_of_t<Bs...>;
using none_of_t = bool_t<none_of_v<Bs...>>;
template <bool... Bs>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment