View Issue Details

IDProjectCategoryView StatusLast Update
0007639Open CASCADEOCCT:Foundation Classespublic2012-01-16 17:51
ReportermsvAssigned Tomsv 
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Fixed in Version5.2.3 
Summary0007639: NCollection_Vector works incorrectly with rare data
DescriptionIn 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
TagsNo tags attached.
Test case number

Attached Files

  • OCC7639_patch.tgz (2,056 bytes)

Activities

2004-12-30 09:16

 

OCC7639_patch.tgz (2,056 bytes)

Issue History

Date Modified Username Field Change
2004-12-30 11:42 msv 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 msv Status assigned => resolved
2004-12-30 14:38 apv CC => apv, aki
2005-01-11 16:39 aki 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 atp Description Updated
2012-01-16 17:51 atp Additional Information Updated