mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
Update Var.h (#3684)
Add `Poco` namespace for `format` function, because it conficts with std::format.
This commit is contained in:
@@ -216,7 +216,7 @@ public:
|
|||||||
else if (!pHolder)
|
else if (!pHolder)
|
||||||
throw InvalidAccessException("Can not extract empty value.");
|
throw InvalidAccessException("Can not extract empty value.");
|
||||||
else
|
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(pHolder->type().name()),
|
||||||
std::string(typeid(T).name())));
|
std::string(typeid(T).name())));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user