Skip to content

Commit

Permalink
attempt fix templating for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Oct 5, 2023
1 parent 64524eb commit b8642a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cpp/src/arrow/compute/kernels/scalar_cast_numeric.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ struct ParseString {
};

template <typename O, typename I>
struct CastFunctor<O, I, enable_if_base_binary<I>> {
struct CastFunctor<
O, I, enable_if_t<(is_number_type<O>::value && is_base_binary_type<I>::value)>> {
static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) {
return applicator::ScalarUnaryNotNull<O, I, ParseString<O>>::Exec(ctx, batch, out);
}
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/arrow/compute/kernels/scalar_cast_temporal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ struct ParseDate {
};

template <typename O, typename I>
struct CastFunctor < O,
I, enable_if_t<(is_date_type<O>::value && is_string_type<I>::value)>> {
struct CastFunctor<O, I,
enable_if_t<(is_date_type<O>::value && is_string_type<I>::value)>> {
static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) {
return applicator::ScalarUnaryNotNull<O, I, ParseDate<O>>::Exec(ctx, batch, out);
}
Expand Down

0 comments on commit b8642a9

Please sign in to comment.