[gdal-dev] int versus bool in C++ method args

Kurt Schwehr schwehr at gmail.com
Tue Feb 20 07:23:48 PST 2018


Hi Even,

With https://trac.osgeo.org/gdal/changeset/41510, would it be possible to
use a bool for bDelete since this is a member of a C++ class?  Any C API
call could easily convert from an int to a bool and then we have cleaner
internals for the C++ side of the house.  Or is there some other reason
that had you using an int boolean?

OGRErr          removeCurve( int iIndex, int bDelete = TRUE );

Thanks,
-kurt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180220/dd8f629b/attachment.html>


More information about the gdal-dev mailing list