Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0024407Open CASCADE[OCCT] OCCT:Foundation Classespublic2013-11-27 11:542019-10-05 11:11
Assigned Toabv 
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version[OCCT] 6.6.0 
Target VersionFixed in Version 
Summary0024407: Extend Handle by implicit DownCast capabilities
DescriptionIt could be useful to extend Handle types by additional constructor and assignment operator that would provide implicit DownCast capabilities, to do something like this:

Handle(Geom_Curve) aCurve = ...; // Get a curve from somewhere
Handle(Geom_Circle) aCircle1(aCurve); // Now it is impossible
Handle(Geom_Circle) aCircle2 = aCurve; // Now it is impossible

The new approach could help reduce the amount of code.
TagsNo tags attached.
Test case number
Attached Files

- Relationships

-  Notes
abv (manager)
2019-10-05 11:11

Implicit downcasting can be quite dangerous, requiring explicit call to method DownCast() makes this non-trivial action more explicit (and is consistent with common approach adopted in C++ standard library), thus closing

- Issue History
Date Modified Username Field Change
2013-11-27 11:54 szv New Issue
2013-11-27 11:54 szv Assigned To => abv
2019-10-05 11:11 abv Note Added: 0087854
2019-10-05 11:11 abv Status new => closed
2019-10-05 11:11 abv Resolution open => won't fix

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker