From a33fe4bcdd626450df6db4405c89984b35193edb Mon Sep 17 00:00:00 2001 From: dhmemi Date: Fri, 15 Sep 2023 15:22:49 +0800 Subject: [PATCH] make clang-tidy happy. --- src/json-validator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json-validator.cpp b/src/json-validator.cpp index 2021471..ddbaaa1 100644 --- a/src/json-validator.cpp +++ b/src/json-validator.cpp @@ -863,7 +863,7 @@ class numeric : public schema // multipleOf - if the remainder of the division is 0 -> OK bool violates_multiple_of(T x) const { - if constexpr (std::is_floating_point_v) { + if constexpr (std::is_floating_point::value) { auto multiple = x / multipleOf_.second; auto error = std::abs((multiple - std::round(multiple)) * multipleOf_.second); return error > std::numeric_limits::epsilon();