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. _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
