Skip to content

Commit da3b70d

Browse files
committed
Change the return type of AccessValues::size() to be view-like
This also fixes a recently introduced warning.
1 parent 136b268 commit da3b70d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/spatial/detail/ArborX_AccessTraits.hpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ struct AccessTraits<Details::AccessValuesI<Values>>
198198
}
199199

200200
KOKKOS_FUNCTION
201-
static decltype(auto) size(AccessValues const &w) { return w.size(); }
201+
static typename memory_space::size_type size(AccessValues const &w)
202+
{
203+
return w.size();
204+
}
202205
};
203206

204207
} // namespace ArborX

0 commit comments

Comments
 (0)