[geos-commits] r3197 - trunk/src/operation/union

svn_geos at osgeo.org svn_geos at osgeo.org
Thu Feb 10 16:05:06 EST 2011


Author: strk
Date: 2011-02-10 13:05:06 -0800 (Thu, 10 Feb 2011)
New Revision: 3197

Modified:
   trunk/src/operation/union/PointGeometryUnion.cpp
Log:
Can't just std::copy over an empty container. Need a back_inserter !

Modified: trunk/src/operation/union/PointGeometryUnion.cpp
===================================================================
--- trunk/src/operation/union/PointGeometryUnion.cpp	2011-02-10 15:51:16 UTC (rev 3196)
+++ trunk/src/operation/union/PointGeometryUnion.cpp	2011-02-10 21:05:06 UTC (rev 3197)
@@ -69,7 +69,8 @@
   else
   {
     std::vector<Coordinate> coords;
-    std::copy(exteriorCoords.begin(), exteriorCoords.end(), coords.begin());
+    std::copy(exteriorCoords.begin(), exteriorCoords.end(),
+      back_inserter(coords));
     ptComp.reset( geomFact->createMultiPoint(coords) );
   }
 



More information about the geos-commits mailing list