Skip to content

Commit

Permalink
Readd identity::result_type
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 13, 2025
1 parent fc3b7f3 commit d31cbc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions thrust/thrust/functional.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ using ::cuda::std::bit_xor;
template <typename T = void>
struct identity
{
// FIXME(bgruber): we cannot remove this yet, because transform_iterator depends on it
using result_type _LIBCUDACXX_DEPRECATED_IN_CXX11 = T;

_CCCL_EXEC_CHECK_DISABLE
_CCCL_HOST_DEVICE constexpr const T& operator()(const T& x) const
{
Expand Down

0 comments on commit d31cbc2

Please sign in to comment.