#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 #else #define UNIQUEPTR std::auto_ptr #endif }}} 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). _______________________________________________ geos-devel mailing list geos-devel@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/geos-devel