Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

update type_traits/logical_metafunctions.h #1547 #1548

Merged
merged 1 commit into from
Oct 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions thrust/type_traits/logical_metafunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ struct conjunction_value<> : std::true_type {};
template <bool B>
struct conjunction_value<B> : std::integral_constant<bool, B> {};

template <bool B0, bool... BN>
struct conjunction_value<B0, BN...>
: std::integral_constant<bool, B0 && conjunction_value<BN...>::value> {};
template <bool B, bool... Bs>
struct conjunction_value<B, Bs...>
: std::integral_constant<bool, B && conjunction_value<Bs...>::value> {};

///////////////////////////////////////////////////////////////////////////////

Expand All @@ -153,9 +153,9 @@ struct disjunction_value<> : std::false_type {};
template <bool B>
struct disjunction_value<B> : std::integral_constant<bool, B> {};

template <bool B0, bool... BN>
struct disjunction_value<B0, BN...>
: std::integral_constant<bool, B0 || disjunction_value<BN...>::value> {};
template <bool B, bool... Bs>
struct disjunction_value<B, Bs...>
: std::integral_constant<bool, B || disjunction_value<Bs...>::value> {};

///////////////////////////////////////////////////////////////////////////////

Expand Down