[gdal-dev] Big three rules for C++ classes

Christopher Hunt huntc at internode.on.net
Thu Jul 2 00:19:09 EDT 2009


Hi there,

I've just started using the classes from the ogr_geometry API and note  
that they do not obey the C++ Rule of Three:

http://en.wikipedia.org/wiki/Rule_of_three_(C%2B%2B_programming)

Perhaps the copy ctor and assignment operators should receive a  
private scope in OGRGeometry unless they are implemented of course.

Kind regards,
Christopher


More information about the gdal-dev mailing list