Just checked and it seems that a plain (non-ref) const shared_ptr can
be copied:
I see your point but the situation is a bit different:
- technically copying a const shared_ptr doesn't modify the original
shared_ptr, but the control block encapsulating the raw pointer and the
ref count, shared by all shared_ptr<>.
- Furthermore there is no const method in a shared_ptr<> that would
destroy it. Whereas OGRFeatureDefn::Release() can definitely destroy
"this" when the ref count reaches 0.
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev