Skip to content
Snippets Groups Projects

Fixed issue with pack expansion of alias template

Merged Müller, Felix requested to merge issue/variadic_packs_bug into master
1 file
+ 7
13
Compare changes
  • Side-by-side
  • Inline
+ 7
13
@@ -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>
Loading