Skip to content

Commit

Permalink
Explicitly write out ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Jan 31, 2025
1 parent f5aa177 commit 4cc530c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions cpp/src/rolling/detail/range_utils.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,13 @@ struct range_window_clamper {
*/
template <typename Grouping, typename OrderbyT, typename DeltaT>
struct distance_kernel {
distance_kernel(Grouping groups,
DeltaT const* row_delta,
column_device_view::const_iterator<OrderbyT> begin,
column_device_view::const_iterator<OrderbyT> end)
: groups{groups}, row_delta{row_delta}, begin{begin}, end{end}
{
}
Grouping groups; ///< Group information to determine bounds on current row's window
static_assert(cuda::std::is_same_v<Grouping, ungrouped> ||
cuda::std::is_same_v<Grouping, grouped> ||
Expand Down Expand Up @@ -610,14 +617,6 @@ struct range_window_clamper {
}
};

// Deduction guide
template <typename Grouping, typename OrderbyT, typename DeltaT>
distance_kernel(Grouping,
DeltaT const*,
column_device_view::const_iterator<OrderbyT>,
column_device_view::const_iterator<OrderbyT>)
-> distance_kernel<Grouping, OrderbyT, DeltaT>;

/**
* @brief Compute the window bounds (possibly grouped) for an orderby column.
*
Expand Down

0 comments on commit 4cc530c

Please sign in to comment.