View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010033 | Open CASCADE | OCCT:WOK | public | 2005-09-19 15:27 | 2012-01-13 17:59 |
Reporter | Assigned To | ||||
Priority | normal | Severity | feature | ||
Status | closed | Resolution | fixed | ||
OS | All | ||||
Fixed in Version | 6.1.1 | ||||
Summary | 0010033: WOK: Avoid defining new() and delete() for classes derived from other | ||||
Description | Currently when WOK generates header file for a CDL class, it includes there definitions for operators new() and delete(). This is not needed in most cases and even more -- it is bad when class is derived from another for several reasons: - These operators are inherited from the base class - Redefinition of these operators in derived class is dangerous, since when the object is deleted using pointer to a base class, the method delete() of the base class will be called instead of the same method of derived class. (See attached CPP file for example.) - The documentation generated by Doxygen is polluted by these ridiculous methods - This increases size of header files and number of definitions to be processed by compiler Thus the proposal is to avoid generating these methods in classes that inherit from others (note that they are actually useful in very basic classes such as Standard_Transient) | ||||
Additional information and documentation updates | Documentation remark, added by ABV 2006-10-05 10:48:37: New features: Improvements: Automatic generation of methods new() and delete() in the classes that inherit from others is now avoided. Changes: Modified entities: | ||||
Tags | No tags attached. | ||||
Test case number | |||||
related to | 0013051 | closed | Using nonexistent objects in Standard_ForMapOfTypes class |
Date Modified | Username | Field | Change |
---|---|---|---|
2006-01-31 14:07 | bugmaster | Assigned To | bugmaster => imv |
2006-01-31 14:07 | bugmaster | Status | new => assigned |
2006-08-07 11:42 | bugmaster | Assigned To | imv => abv |
2006-08-08 18:28 |
|
OtherBugsDependingOnThis | => 13051 |
2006-09-06 09:42 | bugmaster | Status | assigned => verified |
2006-10-31 15:33 | bugmaster | Status | verified => closed |
2006-10-31 15:33 | bugmaster | Resolution | @0@ => fixed |
2012-01-13 17:59 |
|
Description Updated | |
2012-01-13 17:59 |
|
Additional Information Updated |