View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007639 | Open CASCADE | OCCT:Foundation Classes | public | 2004-12-30 11:15 | 2012-01-16 17:51 |
Reporter | Assigned To | ||||
Priority | normal | Severity | trivial | ||
Status | closed | Resolution | fixed | ||
OS | All | ||||
Fixed in Version | 5.2.3 | ||||
Summary | 0007639: NCollection_Vector works incorrectly with rare data | ||||
Description | In OCCT 5.2.2 NCollection_Vector was improved so as to enable rare data in the vector, i.e. it is not necessary to set values with lower indices in order to set values with upper indices. E.g., NCollection_Vector<int> vec; int val = 10; vec.SetValue(1, val); vec.SetValue(1000, val); However, the bug exists connected with this new behaviour. E.g., the following code vec.SetValue(1, 1); vec.SetValue(1000, 2); vec.SetValue(500, 3); will produce a bad vector, such that iterator on that vector will give only elements whose indices are 1 and 1000, while element 500 is lost: NCollection_Vector<int>::Iterator it(vec); for (; it.More(); it.Next()) cout<<it.Value()<<endl; output is: 1 2 | ||||
Additional information and documentation updates | Documentation remark, added by MSV 2004-12-30 10:16:41: New features: None Improvements: None Changes: None | ||||
Tags | No tags attached. | ||||
Test case number | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2004-12-30 11:42 |
|
BugsThisDependsOn | => 7640 |
2004-12-30 12:04 | bugmaster | Assigned To | bugmaster => msv |
2004-12-30 12:04 | bugmaster | Status | new => assigned |
2004-12-30 12:18 |
|
Status | assigned => resolved |
2004-12-30 14:38 |
|
CC | => apv, aki |
2005-01-11 16:39 |
|
Status | resolved => tested |
2005-01-17 08:51 | bugmaster | Status | tested => verified |
2005-05-06 15:20 | bugmaster | Status | verified => closed |
2005-05-06 15:20 | bugmaster | Resolution | @0@ => fixed |
2011-08-02 11:23 | bugmaster | Category | OCCT:FDC => OCCT:Foundation Classes |
2012-01-16 17:51 |
|
Description Updated | |
2012-01-16 17:51 |
|
Additional Information Updated |