From a710ac60111d4aed90ad1cda39c0ee91f1c3f529 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 6 Nov 2023 03:00:03 +0100 Subject: [PATCH] This is actually better --- src/Functions/castTypeToEither.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Functions/castTypeToEither.h b/src/Functions/castTypeToEither.h index e2e30c455ab..58b13e350b2 100644 --- a/src/Functions/castTypeToEither.h +++ b/src/Functions/castTypeToEither.h @@ -7,13 +7,13 @@ namespace DB { template -static NO_INLINE bool castTypeToEither(const T * type, F && f) +static bool castTypeToEither(const T * type, F && f) { return ((typeid_cast(type) && f(*typeid_cast(type))) || ...); } template -static NO_INLINE bool castTypeToEither(TypeList, const auto * type, auto && f) +static bool castTypeToEither(TypeList, const auto * type, auto && f) { return ((typeid_cast(type) != nullptr && std::forward(f)(*typeid_cast(type))) || ...); }