Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
605d1fc1
Commit
605d1fc1
authored
Jul 28, 2020
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
amdis/common/Logical.hpp
View file @
605d1fc1
...
...
@@ -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
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment