Skip to content

Commit

Permalink
Use cuda::std::forward
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack committed Sep 16, 2024
1 parent 7b7b553 commit f4e1108
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/cuco/detail/static_multimap/static_multimap_ref.inl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <cuda/atomic>
#include <cuda/std/functional>
#include <cuda/std/utility>

#include <cooperative_groups.h>

Expand Down Expand Up @@ -522,7 +523,7 @@ class operator_impl<
{
// CRTP: cast `this` to the actual ref type
auto const& ref_ = static_cast<ref_type const&>(*this);
ref_.impl_.for_each(key, std::forward<CallbackOp>(callback_op));
ref_.impl_.for_each(key, cuda::std::forward<CallbackOp>(callback_op));
}

/**
Expand Down Expand Up @@ -552,7 +553,7 @@ class operator_impl<
{
// CRTP: cast `this` to the actual ref type
auto const& ref_ = static_cast<ref_type const&>(*this);
ref_.impl_.for_each(group, key, std::forward<CallbackOp>(callback_op));
ref_.impl_.for_each(group, key, cuda::std::forward<CallbackOp>(callback_op));
}

/**
Expand Down Expand Up @@ -592,7 +593,7 @@ class operator_impl<
// CRTP: cast `this` to the actual ref type
auto const& ref_ = static_cast<ref_type const&>(*this);
ref_.impl_.for_each(
group, key, std::forward<CallbackOp>(callback_op), std::forward<SyncOp>(sync_op));
group, key, cuda::std::forward<CallbackOp>(callback_op), cuda::std::forward<SyncOp>(sync_op));
}
};

Expand Down

0 comments on commit f4e1108

Please sign in to comment.