From 3913733cef2f57fc32f886db78f37527f76583ad Mon Sep 17 00:00:00 2001 From: Jin Shang Date: Thu, 30 Nov 2023 09:58:51 +0800 Subject: [PATCH] reorder --- .../compute/kernels/base_arithmetic_internal.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cpp/src/arrow/compute/kernels/base_arithmetic_internal.h b/cpp/src/arrow/compute/kernels/base_arithmetic_internal.h index a1024e861bbbd..d59320d270e4f 100644 --- a/cpp/src/arrow/compute/kernels/base_arithmetic_internal.h +++ b/cpp/src/arrow/compute/kernels/base_arithmetic_internal.h @@ -444,13 +444,6 @@ struct FloatingDivide { }; struct FloatingDivideChecked { - template - static enable_if_integer_value Call(KernelContext* ctx, Arg0 left, - Arg1 right, Status* st) { - static_assert(std::is_same::value); - return Call(ctx, static_cast(left), static_cast(right), st); - } - template static enable_if_floating_value Call(KernelContext*, Arg0 left, Arg1 right, Status* st) { @@ -462,6 +455,12 @@ struct FloatingDivideChecked { return left / right; } + template + static enable_if_integer_value Call(KernelContext* ctx, Arg0 left, + Arg1 right, Status* st) { + static_assert(std::is_same::value); + return Call(ctx, static_cast(left), static_cast(right), st); + } // TODO: Add decimal };