From e76dc745145f225f6367d902f2bcfe86e76e00ee Mon Sep 17 00:00:00 2001 From: Axel Holzinger Date: Sat, 21 Mar 2020 20:57:26 +0100 Subject: [PATCH] json-validator.cpp(594): error C2593: 'operator =' is ambiguous. --- Development/third_party/nlohmann/json-validator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Development/third_party/nlohmann/json-validator.cpp b/Development/third_party/nlohmann/json-validator.cpp index 2a7e063e6..aca6303c3 100644 --- a/Development/third_party/nlohmann/json-validator.cpp +++ b/Development/third_party/nlohmann/json-validator.cpp @@ -591,8 +591,8 @@ class string : public schema #ifndef NO_STD_REGEX attr = sch.find("pattern"); if (attr != sch.end()) { - patternString_ = attr.value(); - pattern_ = {true, REGEX_NAMESPACE::regex(attr.value().get(), + patternString_ = attr.value().get(); + pattern_ = {true, REGEX_NAMESPACE::regex(patternString_, REGEX_NAMESPACE::regex::ECMAScript)}; sch.erase(attr); }