diff --git a/common/src/KokkosFFT_utils.hpp b/common/src/KokkosFFT_utils.hpp index f931a91..286534d 100644 --- a/common/src/KokkosFFT_utils.hpp +++ b/common/src/KokkosFFT_utils.hpp @@ -210,14 +210,15 @@ auto extract_extents(const ViewType& view) { } template -std::array shrank_extents(const InViewType& in, const OutViewType& out) { - static_assert(KokkosFFT::Impl::have_same_rank_v, - "shrank_extents: InViewType and OutViewType must have the same rank."); +std::array shrank_extents(const InViewType& in, + const OutViewType& out) { static_assert( - std::is_integral_v, - "shrank_extents: IntType must be an integral type"); + KokkosFFT::Impl::have_same_rank_v, + "shrank_extents: InViewType and OutViewType must have the same rank."); + static_assert(std::is_integral_v, + "shrank_extents: IntType must be an integral type"); constexpr std::size_t rank = InViewType::rank(); - using extents_type = std::array; + using extents_type = std::array; extents_type extents; for (std::size_t i = 0; i < rank; i++) { @@ -229,9 +230,8 @@ std::array shrank_extents(const InViewType& in, const template Layout create_layout(const ContainerType& extents) { using IntType = KokkosFFT::Impl::base_container_value_type; - static_assert( - std::is_integral_v, - "create_layout: IntType must be an integral type"); + static_assert(std::is_integral_v, + "create_layout: IntType must be an integral type"); static_assert(std::is_same_v || std::is_same_v, "create_layout: Layout must be either Kokkos::LayoutLeft or "