Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update thrust/testing/functional.cu
Co-authored-by: Michael Schellenberger Costa <miscco@nvidia.com>
  • Loading branch information
bernhardmgruber and miscco authored Jan 8, 2025
commit 83dac354efa980232e01d77cd1ccf32d3e3f29ed
2 changes: 1 addition & 1 deletion thrust/testing/functional.cu
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ THRUST_DISABLE_BROKEN_GCC_VECTORIZER void TestIdentityFunctional()
// value categories when casting to different type
static_assert(::cuda::std::is_same<decltype(thrust::identity<int>{}(3.14)), int&&>::value, "");
// unfortunately, old versions of MSVC pick the `const int&` overload instead of `int&&`
#if !_CCCL_COMPILER(MSVC) || _CCCL_COMPILER(MSVC, >=, 19, 29)
#if !_CCCL_COMPILER(MSVC, <, 19, 29)
static_assert(::cuda::std::is_same<decltype(thrust::identity<int>{}(d)), int&&>::value, "");
static_assert(::cuda::std::is_same<decltype(thrust::identity<int>{}(as_const(d))), int&&>::value, "");
#endif
Expand Down