> 1. std::unique_ptr > [...] > > Hopefully this will help to reduce the incidence of memory leaks.
+1, that's one of the benefits of C++11 > > -- > > 2. auto > > I'd like to not have to write > > for( std::vector<std::unique_ptr<OGRFeature>>::iterator oIt = > apoMyList.begin(); > > and simply write > > for( auto oIt = apoMyList.begin(); +1. You could even use range based loop for( auto& olt: apoMyList ) (or auto const& depending on what you want to do with it) Even -- Spatialys - Geospatial professional services http://www.spatialys.com
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
