From 2d6fc27dd1500d281eed53fd4de00dec492699f3 Mon Sep 17 00:00:00 2001 From: Aleksandar Fabijanic Date: Wed, 10 Jun 2015 09:03:12 -0500 Subject: [PATCH] Var BadCastException #861 --- Foundation/include/Poco/Dynamic/Var.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/include/Poco/Dynamic/Var.h b/Foundation/include/Poco/Dynamic/Var.h index de0dc6dca..71b6b3071 100644 --- a/Foundation/include/Poco/Dynamic/Var.h +++ b/Foundation/include/Poco/Dynamic/Var.h @@ -221,8 +221,8 @@ public: throw InvalidAccessException("Can not extract empty value."); else throw BadCastException(format("Can not convert %s to %s.", - pHolder->type().name(), - typeid(T).name())); + std::string(pHolder->type().name()), + std::string(typeid(T).name()))); } template