Skip to content

Commit

Permalink
Fix check that view has const value type
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Mar 23, 2022
1 parent 3f83b4b commit 9289d26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sparse/KokkosSparse_getDiagCopy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ void getDiagCopy(const DiagType& D, const OffsetsType& offsets,
static_assert(static_cast<int>(DiagType::rank) == 1,
"The DiagType template parameter must be a 1-D Kokkos::View.");
static_assert(
std::is_same<DiagType, typename DiagType::non_const_type>::value,
std::is_same<typename DiagType::value_type,
typename DiagType::non_const_value_type>::value,
"The DiagType template parameter must be a nonconst Kokkos::View.");
static_assert(Kokkos::is_view<OffsetsType>::value,
"The OffsetsType template parameter must be a Kokkos::View.");
Expand Down

0 comments on commit 9289d26

Please sign in to comment.