diff --git a/src/spatial/detail/ArborX_IndexableGetter.hpp b/src/spatial/detail/ArborX_IndexableGetter.hpp index 4aec2ab36..84909e426 100644 --- a/src/spatial/detail/ArborX_IndexableGetter.hpp +++ b/src/spatial/detail/ArborX_IndexableGetter.hpp @@ -76,6 +76,7 @@ struct Indexables KOKKOS_FUNCTION auto size() const { return _values.size(); } }; +#ifdef KOKKOS_ENABLE_CXX17 template #if KOKKOS_VERSION >= 40400 KOKKOS_DEDUCTION_GUIDE @@ -83,6 +84,7 @@ KOKKOS_DEDUCTION_GUIDE KOKKOS_FUNCTION #endif Indexables(Values, IndexableGetter) -> Indexables; +#endif } // namespace Details