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();