From a8a709927e2b93557c51c53d4341105c814ed2f1 Mon Sep 17 00:00:00 2001 From: zhangcan42 Date: Fri, 10 Jan 2025 10:52:19 +0000 Subject: [PATCH] add float type Signed-off-by: zhangcan42 --- utils/json/traits_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/json/traits_util.h b/utils/json/traits_util.h index 7ba818f2..dce94845 100644 --- a/utils/json/traits_util.h +++ b/utils/json/traits_util.h @@ -23,7 +23,7 @@ namespace Updater { namespace Detail { template -inline constexpr bool G_IS_NUM = std::is_integral_v && !std::is_same_v; +inline constexpr bool G_IS_NUM = (std::is_integral_v && !std::is_same_v) || std::is_same_v; template inline constexpr bool G_IS_BOOL = std::is_same_v; -- Gitee