Skip to content

Commit

Permalink
Enable the deduction guide only for C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Nov 10, 2024
1 parent d2f6ac9 commit 53442f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spatial/detail/ArborX_IndexableGetter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ struct Indexables
KOKKOS_FUNCTION auto size() const { return _values.size(); }
};

#ifdef KOKKOS_ENABLE_CXX17
template <typename Values, typename IndexableGetter>
#if KOKKOS_VERSION >= 40400
KOKKOS_DEDUCTION_GUIDE
#else
KOKKOS_FUNCTION
#endif
Indexables(Values, IndexableGetter) -> Indexables<Values, IndexableGetter>;
#endif

} // namespace Details

Expand Down

0 comments on commit 53442f6

Please sign in to comment.