View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0024407 | Open CASCADE | OCCT:Foundation Classes | public | 2013-11-27 11:54 | 2019-10-05 11:11 |
Reporter | Assigned To | ||||
Priority | normal | Severity | feature | ||
Status | closed | Resolution | won't fix | ||
Product Version | 6.6.0 | ||||
Summary | 0024407: Extend Handle by implicit DownCast capabilities | ||||
Description | It 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. | ||||
Tags | No tags attached. | ||||
Test case number | |||||