[geos-devel] Another Portability Quirk

Paul Ramsey pramsey at refractions.net
Sun Oct 6 22:44:34 EDT 2002


My GNU compilation us currently failing with an error of this sort:

Polygon.cpp:223: no matching function for call to `vector<Geometry *,
allocator<Geometry *> >::at (unsigned int &)'

With the offending code looking like:

         for(unsigned int i=0;i<holes.size();i++) {
                 holes.at(i)->apply(filter);
         }

I assume 'holes' is a 'vector' object from the STL and 'at()' is a 
function name which does not exist in my GNU version of the STL.

P.





More information about the geos-devel mailing list