From b8642a961aed31c4aac4bafcbcf1870570d6dbef Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 5 Oct 2023 17:27:06 +0200 Subject: [PATCH] attempt fix templating for windows --- cpp/src/arrow/compute/kernels/scalar_cast_numeric.cc | 3 ++- cpp/src/arrow/compute/kernels/scalar_cast_temporal.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cpp/src/arrow/compute/kernels/scalar_cast_numeric.cc b/cpp/src/arrow/compute/kernels/scalar_cast_numeric.cc index a02f83351b306..b054e57f04d12 100644 --- a/cpp/src/arrow/compute/kernels/scalar_cast_numeric.cc +++ b/cpp/src/arrow/compute/kernels/scalar_cast_numeric.cc @@ -286,7 +286,8 @@ struct ParseString { }; template -struct CastFunctor> { +struct CastFunctor< + O, I, enable_if_t<(is_number_type::value && is_base_binary_type::value)>> { static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { return applicator::ScalarUnaryNotNull>::Exec(ctx, batch, out); } diff --git a/cpp/src/arrow/compute/kernels/scalar_cast_temporal.cc b/cpp/src/arrow/compute/kernels/scalar_cast_temporal.cc index 49c03395d37e0..a5612643913aa 100644 --- a/cpp/src/arrow/compute/kernels/scalar_cast_temporal.cc +++ b/cpp/src/arrow/compute/kernels/scalar_cast_temporal.cc @@ -483,8 +483,8 @@ struct ParseDate { }; template - struct CastFunctor < O, - I, enable_if_t<(is_date_type::value && is_string_type::value)>> { +struct CastFunctor::value && is_string_type::value)>> { static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { return applicator::ScalarUnaryNotNull>::Exec(ctx, batch, out); }