From 2a36359bc72845337fcb03c762c8fa322e21c81e Mon Sep 17 00:00:00 2001 From: junwufan Date: Thu, 14 Jul 2022 21:09:44 +0800 Subject: [PATCH] Update Var.h (#3684) Add `Poco` namespace for `format` function, because it conficts with std::format. --- Foundation/include/Poco/Dynamic/Var.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foundation/include/Poco/Dynamic/Var.h b/Foundation/include/Poco/Dynamic/Var.h index 2be0ed9b2..4b6b03b30 100644 --- a/Foundation/include/Poco/Dynamic/Var.h +++ b/Foundation/include/Poco/Dynamic/Var.h @@ -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()))); }