Skip to content

Commit

Permalink
Change the return type of AccessValues::size() to be view-like
Browse files Browse the repository at this point in the history
This also fixes a recently introduced warning.
  • Loading branch information
aprokop committed Jan 28, 2025
1 parent 136b268 commit da3b70d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/spatial/detail/ArborX_AccessTraits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ struct AccessTraits<Details::AccessValuesI<Values>>
}

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

} // namespace ArborX
Expand Down

0 comments on commit da3b70d

Please sign in to comment.