Skip to content

Commit c7db1b0

Browse files
pitrouwesm
authored andcommitted
Use trait "enable_if_number"
1 parent 5a9c9a0 commit c7db1b0

File tree

1 file changed

+1
-1
lines changed
  • cpp/src/arrow/compute/kernels

1 file changed

+1
-1
lines changed

cpp/src/arrow/compute/kernels/cast.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ typename std::enable_if<std::is_integral<T>::value && std::is_unsigned<T>::value
799799
}
800800

801801
template <typename O>
802-
struct CastFunctor<O, StringType, typename std::enable_if<is_number<O>::value>::type> {
802+
struct CastFunctor<O, StringType, enable_if_number<O>> {
803803
void operator()(FunctionContext* ctx, const CastOptions& options,
804804
const ArrayData& input, ArrayData* output) {
805805
using out_type = typename O::c_type;

0 commit comments

Comments
 (0)