diff --git a/cpp/include/cudf_test/column_wrapper.hpp b/cpp/include/cudf_test/column_wrapper.hpp index 55b7096f96f..b2339cf6a65 100644 --- a/cpp/include/cudf_test/column_wrapper.hpp +++ b/cpp/include/cudf_test/column_wrapper.hpp @@ -94,7 +94,7 @@ struct fixed_width_type_converter { template ::value, void>::type* = nullptr> - ToT operator()(FromT element) const + __host__ __device__ ToT operator()(FromT element) const { return element; } @@ -106,7 +106,7 @@ struct fixed_width_type_converter { (cudf::is_convertible::value || std::is_constructible::value), void>::type* = nullptr> - ToT operator()(FromT element) const + __host__ __device__ ToT operator()(FromT element) const { return static_cast(element); } @@ -117,7 +117,7 @@ struct fixed_width_type_converter { typename ToT = To, typename std::enable_if::value && cudf::is_timestamp_t::value, void>::type* = nullptr> - ToT operator()(FromT element) const + __host__ __device__ ToT operator()(FromT element) const { return ToT{typename ToT::duration{element}}; }