Skip to content

Commit

Permalink
Update common/src/KokkosFFT_utils.hpp
Browse files Browse the repository at this point in the history
Remove unnecessary variadic integers

Co-authored-by: Damien L-G <[email protected]>
  • Loading branch information
tpadioleau and dalg24 authored Oct 13, 2024
1 parent fb2131f commit 6912de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/src/KokkosFFT_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ constexpr Kokkos::Array<T, N> to_array_rvalue_helper(
return {{std::move(a[Is])...}};
}

template <class T, size_t N, size_t... Is>
template <class T, size_t N>
constexpr Kokkos::Array<T, N> to_array(const std::array<T, N>& a) {
return to_array_lvalue_helper(a, std::make_index_sequence<N>());
}
template <class T, size_t N, size_t... Is>
template <class T, size_t N>
constexpr Kokkos::Array<T, N> to_array(std::array<T, N>&& a) {
return to_array_rvalue_helper(std::move(a), std::make_index_sequence<N>());
}
Expand Down

0 comments on commit 6912de5

Please sign in to comment.