[geos-devel] [GEOS] #785: g++ 6 auto_ptr

GEOS geos-trac at osgeo.org
Thu Jul 7 09:49:30 PDT 2016

#785: g++ 6 auto_ptr
 Reporter:  rsbivand    |       Owner:  geos-devel@…
     Type:  defect      |      Status:  new
 Priority:  minor       |   Milestone:  3.5.1
Component:  Default     |     Version:  3.5.0
 Severity:  Unassigned  |  Resolution:
 Keywords:              |

Comment (by rouault):

 auto_ptr and unique_ptr have very similar behaviour and API and can be
 used equivalently if you make basic uses of them (check the differences to
 see if you're not running into them)

 In GDAL there's a driver making use of auto_ptr, and I've finally done
 #if __cplusplus >= 201103L
 #define UNIQUEPTR       std::unique_ptr
 #define UNIQUEPTR       std::auto_ptr

 A bit ugly, but works fine.

Ticket URL: <https://trac.osgeo.org/geos/ticket/785#comment:2>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

More information about the geos-devel mailing list