Jürgen Spitzmüller wrote:
Jean-Marc Lasgouttes wrote:
Did not work. This is gcc 3.4.1, BTW.

Same here. This one at least makes it compile again:

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;

Reply via email to