Skip to content

Commit

Permalink
Remove unneeded capturing
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed May 11, 2023
1 parent 7190069 commit 2488a84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/include/cudf_test/iterator_utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ template <typename Iter>
template <class T>
[[maybe_unused]] static auto nulls_from_nullptrs(std::vector<T const*> const& ptrs)
{
return thrust::make_transform_iterator(ptrs.begin(),
[&ptrs](auto ptr) { return ptr != nullptr; });
return thrust::make_transform_iterator(ptrs.begin(), [](auto ptr) { return ptr != nullptr; });
}

} // namespace iterators
Expand Down

0 comments on commit 2488a84

Please sign in to comment.