diff --git a/src/Functions/FunctionBinaryArithmetic.h b/src/Functions/FunctionBinaryArithmetic.h index 06911557a96..f26fb6c7bfb 100644 --- a/src/Functions/FunctionBinaryArithmetic.h +++ b/src/Functions/FunctionBinaryArithmetic.h @@ -1522,7 +1522,7 @@ public: { using LeftDataType = std::decay_t; using RightDataType = std::decay_t; - if constexpr (std::is_same_v || std::is_same_v) + if constexpr (std::is_same_v || std::is_same_v || std::is_same_v || std::is_same_v) return false; else { @@ -1542,7 +1542,7 @@ public: { using LeftDataType = std::decay_t; using RightDataType = std::decay_t; - if constexpr (!std::is_same_v && !std::is_same_v) + if constexpr (!std::is_same_v && !std::is_same_v && !std::is_same_v && !std::is_same_v) { using ResultDataType = typename BinaryOperationTraits::ResultDataType; using OpSpec = Op;