From ea664cfee668308e47bd790295162fbd2e9e4d43 Mon Sep 17 00:00:00 2001 From: Aleksandar Fabijanic Date: Tue, 13 Jan 2009 14:00:44 +0000 Subject: [PATCH] [SF 2492462] Dynamic/Struct.h : Compilation Error with mingw --- Foundation/include/Poco/Dynamic/Struct.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Foundation/include/Poco/Dynamic/Struct.h b/Foundation/include/Poco/Dynamic/Struct.h index 4a5b23004..27a828b43 100644 --- a/Foundation/include/Poco/Dynamic/Struct.h +++ b/Foundation/include/Poco/Dynamic/Struct.h @@ -77,8 +77,10 @@ public: template Struct(const std::map& val) { - std::map::const_iterator it = val.begin(); - std::map::const_iterator end = val.end(); + typedef typename std::map::const_iterator MapConstIterator; + + MapConstIterator it = val.begin(); + MapConstIterator end = val.end(); for (; it != end; ++it) _data.insert(ValueType(it->first, Var(it->second))); }