diff --git a/cpp/include/cudf/table/experimental/row_operators.cuh b/cpp/include/cudf/table/experimental/row_operators.cuh index debd436d6df..336420ed840 100644 --- a/cpp/include/cudf/table/experimental/row_operators.cuh +++ b/cpp/include/cudf/table/experimental/row_operators.cuh @@ -185,14 +185,14 @@ class device_row_comparator { CUDF_ENABLE_IF(not cudf::is_relationally_comparable() and not std::is_same_v), typename... Args> - __device__ cuda::std::pair operator()(Args...) + __device__ cuda::std::pair operator()(Args...) const noexcept { CUDF_UNREACHABLE("Attempted to compare elements of uncomparable types."); } template )> - __device__ cuda::std::pair operator()(size_type const lhs_element_index, - size_type const rhs_element_index) + __device__ cuda::std::pair operator()( + size_type const lhs_element_index, size_type const rhs_element_index) const noexcept { column_device_view lcol = _lhs; column_device_view rcol = _rhs; @@ -288,7 +288,7 @@ class device_row_comparator { */ template struct weak_ordering_comparator_impl { - __device__ bool operator()(size_type const& lhs, size_type const& rhs) + __device__ bool operator()(size_type const lhs, size_type const rhs) const noexcept { weak_ordering const result = comparator(lhs, rhs); return ((result == values) || ...);