Opened 6 years ago

Closed 6 years ago

#5990 closed defect (fixed)

Copy constructor and assignment operator in the C++ API

Reported by: xeonx Owned by: warmerdam
Priority: normal Milestone: 2.1.0
Component: default Version: unspecified
Severity: normal Keywords:


As discussed on the mailing list, I propose to implement the rule of 3 on OGRGeometry and derived classes.

In order to implement the tests in ogr_test.cpp, I needed to add this file to the makefile and upgrade one existing line of code to GDAL 2.0.

Code was tested with both windows and linux.

Attachments (1)

gdal_rule_of_3.patch (39.6 KB) - added by xeonx 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by xeonx

Attachment: gdal_rule_of_3.patch added

comment:1 Changed 6 years ago by Even Rouault

Milestone: 2.1.0
Resolution: fixed
Status: newclosed

Perfect. I've just added doxygen comments to warn that they will be only available since GDAL 2.1

trunk r29319 "OGRGeometry and derived classes: implement copy constructor and assignment operator (patch by Simon Hege, #5990)"

Note: See TracTickets for help on using tickets.