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

2009-07-12 Thread Mateusz Loskot
Christopher Hunt wrote: > Hi Mateusz, > > Thank you for your email and confirmation of GDAL's use of C++. Hi Christopher, Welcome. By the way, I usually wrap GDAL with some *very* thin class (holder/surrogate) that manages all the basic C++ principles and idioms for me. Sometimes, boost::shared_

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

2009-07-11 Thread Mateusz Loskot
Christopher Hunt wrote: > 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) Christopher, Yes, you are right. When working with GDAL/OGR classes, i

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

2009-07-01 Thread Christopher Hunt
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