From 53442f6248f1536cb82acdaed261be50dcf9908c Mon Sep 17 00:00:00 2001 From: Andrey Prokopenko Date: Sun, 10 Nov 2024 10:09:07 -0500 Subject: [PATCH] Enable the deduction guide only for C++17 --- src/spatial/detail/ArborX_IndexableGetter.hpp | 2 ++ 1 file changed, 2 insertions(+) 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