Skip to content

Commit

Permalink
Add Impl::always_false type-dendent false trait
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Dec 14, 2023
1 parent 76ea3a3 commit 33db304
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/impl/Kokkos_Utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ struct integral_constant {
template <typename... Is>
struct always_true : std::true_type {};

// type-dependent expression that is always false intended for use in
// static_assert to check "we should never get there"
template <typename... Deps>
struct always_false : std::false_type {};

//==============================================================================

#if defined(__cpp_lib_type_identity)
Expand Down

0 comments on commit 33db304

Please sign in to comment.