From ba946fc592d705e01fff10a81a0becbf884698ae Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Mon, 3 Aug 2015 07:33:37 +0200 Subject: [PATCH] fix for VS2008 --- JSON/include/Poco/JSON/Object.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/JSON/include/Poco/JSON/Object.h b/JSON/include/Poco/JSON/Object.h index 0d6041fb0..f4be10fb2 100644 --- a/JSON/include/Poco/JSON/Object.h +++ b/JSON/include/Poco/JSON/Object.h @@ -320,7 +320,11 @@ inline const Dynamic::Var& Object::getValue(ValueMap::const_iterator& it) const inline const Dynamic::Var& Object::getValue(KeyPtrList::const_iterator& it) const { - return _values.at(**it); + ValueMap::const_iterator itv = _values.find(**it); + if (itv != _values.end()) + return itv->second; + else + throw Poco::NotFoundException(); }