diff --git a/include/cuco/detail/pair.cuh b/include/cuco/detail/pair.cuh index da50f7258..8e7bdc594 100644 --- a/include/cuco/detail/pair.cuh +++ b/include/cuco/detail/pair.cuh @@ -75,8 +75,8 @@ struct is_thrust_pair_like_impl struct is_thrust_pair_like - : is_thrust_pair_like_impl< - std::remove_reference_t()))>> { + : is_thrust_pair_like_impl()))>>> { }; } // namespace detail @@ -131,8 +131,10 @@ using pair_type = cuco::pair; * @return pair_type with first element `f` and second element `s`. */ template -__host__ __device__ pair_type make_pair(F&& f, S&& s) noexcept +__host__ __device__ auto make_pair(F&& f, S&& s) noexcept { - return pair_type{std::forward(f), std::forward(s)}; + using decayed_F = std::decay_t; + using decayed_S = std::decay_t; + return pair_type{std::forward(f), std::forward(s)}; } } // namespace cuco \ No newline at end of file