From dffbabb1b2a63dbd26df9375627623de4216dd70 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 11 Mar 2025 08:18:37 -0600 Subject: [PATCH] Work around an issue with MSVC. --- bundled/kokkos-4.5.01/core/src/View/Kokkos_BasicView.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundled/kokkos-4.5.01/core/src/View/Kokkos_BasicView.hpp b/bundled/kokkos-4.5.01/core/src/View/Kokkos_BasicView.hpp index 29eafca62e..2f6eda0458 100644 --- a/bundled/kokkos-4.5.01/core/src/View/Kokkos_BasicView.hpp +++ b/bundled/kokkos-4.5.01/core/src/View/Kokkos_BasicView.hpp @@ -523,7 +523,7 @@ class BasicView { // Some weird unexplained issue in compiling the SFINAE version with CUDA/MSVC // So we just use post factor check here with static_assert -#if defined(KOKKOS_ENABLE_CUDA) && defined(_WIN32) +#if defined(KOKKOS_ENABLE_CUDA) || defined(_WIN32) template KOKKOS_FUNCTION constexpr reference operator()( OtherIndexTypes... indices) const { -- 2.39.5