Georg Baum wrote:
Abdelrazak Younes wrote:
Jürgen Spitzmüller wrote:
Index: src/CoordCache.h
===================================================================
--- src/CoordCache.h (Revision 20461)
+++ src/CoordCache.h (Arbeitskopie)
@@ -108,8 +108,8 @@
bool covers(T const * thing, int x, int y) const
{
- cache_type::const_iterator it = data_.find(thing);
- return it != data_.end() && it->second.covers(x, y);
+ //cache_type::const_iterator it = data_.find(thing);
+ return data_.find(thing) != data_.end() &&
data_.find(thing)->second.covers(x, y);
}
Could you try to set a typedef and use that:
typedef cache_type::const_iterator const_iterator;
I guess that it would not help, because a typename is missing (cache_type
depends on a template parameter):
typename cache_type::const_iterator it ...
. In older versions of the standard an implicit typename was assumed, and I
guess that your MSVC still allows this.
Ah yes, I forgot about that. Thanks.
Abdel.