Update Var.h (#3684)

Add `Poco` namespace for `format` function, because it conficts with std::format.
This commit is contained in:
junwufan
2022-07-14 21:09:44 +08:00
committed by GitHub
parent c976c32e52
commit 2a36359bc7

View File

@@ -216,7 +216,7 @@ public:
else if (!pHolder)
throw InvalidAccessException("Can not extract empty value.");
else
throw BadCastException(format("Can not convert %s to %s.",
throw BadCastException(Poco::format("Can not convert %s to %s.",
std::string(pHolder->type().name()),
std::string(typeid(T).name())));
}