diff --git a/cpp/include/cudf/utilities/span.hpp b/cpp/include/cudf/utilities/span.hpp index dcb9786bbd2..074e8d25bf7 100644 --- a/cpp/include/cudf/utilities/span.hpp +++ b/cpp/include/cudf/utilities/span.hpp @@ -226,7 +226,7 @@ struct host_span : public cudf::detail::span_base().data()))> (*)[], T (*)[]>>* = nullptr> - constexpr host_span(C& in) : base(in.data(), in.size()) + constexpr host_span(C& in) : base(thrust::raw_pointer_cast(in.data()), in.size()) { } @@ -239,7 +239,7 @@ struct host_span : public cudf::detail::span_base().data()))> (*)[], T (*)[]>>* = nullptr> - constexpr host_span(C const& in) : base(in.data(), in.size()) + constexpr host_span(C const& in) : base(thrust::raw_pointer_cast(in.data()), in.size()) { }