Skip to content

Commit

Permalink
Resolve TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Feb 4, 2025
1 parent fc389fe commit 9d75525
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion thrust/testing/functional.cu
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ THRUST_DISABLE_BROKEN_GCC_VECTORIZER void TestIdentityFunctional()
int i = 42;
double d = 3.14;

// TODO
// pass through
ASSERT_EQUAL(thrust::identity<int>{}(i), 42);
ASSERT_EQUAL(thrust::identity<int>{}(d), 3);
Expand Down
2 changes: 1 addition & 1 deletion thrust/thrust/system/detail/generic/copy.inl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ _CCCL_HOST_DEVICE OutputIterator
copy_n(thrust::execution_policy<DerivedPolicy>& exec, InputIterator first, Size n, OutputIterator result)
{
using value_type = typename thrust::iterator_value<InputIterator>::type;
using xfrm_type = thrust::identity<value_type>; // TODO
using xfrm_type = ::cuda::std::identity;

using functor_type = thrust::detail::unary_transform_functor<xfrm_type>;

Expand Down

0 comments on commit 9d75525

Please sign in to comment.