Skip to content

Commit

Permalink
Merge pull request #1206 from aprokop/fix_warning
Browse files Browse the repository at this point in the history
Change the return type of AccessValues::size() to be view-like
  • Loading branch information
aprokop authored Jan 30, 2025
2 parents 136b268 + cd6324a commit 2bf01bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spatial/detail/ArborX_AccessTraits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class AccessValuesI
decltype(auto) operator()(int i) const { return Access::get(_values, i); }

KOKKOS_FUNCTION
auto size() const { return Access::size(_values); }
std::size_t size() const { return Access::size(_values); }

using self_type = AccessValuesI<Values>;
};
Expand Down Expand Up @@ -198,7 +198,7 @@ struct AccessTraits<Details::AccessValuesI<Values>>
}

KOKKOS_FUNCTION
static decltype(auto) size(AccessValues const &w) { return w.size(); }
static auto size(AccessValues const &w) { return w.size(); }
};

} // namespace ArborX
Expand Down

0 comments on commit 2bf01bf

Please # to comment.