Skip to content

Commit

Permalink
[FIX?] Switch couple function signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Sep 1, 2023
1 parent f631ac2 commit 7d18ee9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/details/ArborX_DetailsLegacy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class LegacyValues
{}

KOKKOS_FUNCTION
decltype(auto) operator()(size_type i) const
auto operator()(size_type i) const
{
if constexpr (std::is_same_v<BoundingVolume,
typename AccessTraitsHelper<Access>::type>)
Expand Down
3 changes: 2 additions & 1 deletion src/details/ArborX_IndexableGetter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ struct Indexables
using Access = AccessTraits<Values, PrimitivesTag>;
using memory_space = typename Access::memory_space;

KOKKOS_FUNCTION decltype(auto) operator()(int i) const
// FIXME: why is using `delctype(auto)` or `auto const &` here not work?
KOKKOS_FUNCTION auto operator()(int i) const
{
return _indexable_getter(Access::get(_values, i));
}
Expand Down

0 comments on commit 7d18ee9

Please sign in to comment.