[gdal-dev] [gdal 3.12beta1] OGRFeature::GetDefnRef now returns a const pointer
Even Rouault
even.rouault at spatialys.com
Wed Oct 22 02:42:52 PDT 2025
Le 22/10/2025 à 02:37, Daniel Baston a écrit :
> Regarding #2 (the direction I'd lean), does GetRefCount() need to be a
> public method?
As far as I can see, besides the C wrapper OGR_FD_GetReferenceCount(),
it is only used once in our code base (so could be a protected method
with a friend). I'd assume it would be very rarely used in external
code, but if we hide it, they'll be stuck.
@Montchil For your purpose of doing bindings, could you deal with the
"const OGRFeatureDefn*" (besides the ref count issue), or don't you need
to const_cast it anyway to "OGRFeatureDefn*" ?
--
http://www.spatialys.com
My software is free, but my time generally not.
More information about the gdal-dev
mailing list