View Issue Details

IDProjectCategoryView StatusLast Update
0012959Open CASCADEOCCT:Foundation Classespublic2014-05-03 06:55
ReporterabvAssigned Tobugmaster  
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Fixed in Version6.5.0 
Summary0012959: Compiler warnings in TColStd_PackedMapOfInteger
DescriptionWhen compiling on Linux, the compiler reports warnings in
TColStd_PackedMapOfInteger.cxx, lines 282 and 283 for inappropriate casting of
TColStd_intMapNode** to TCollection_MapNode*& in call to method BeginResize() of
TCollection_BasicMap.

In fact, the problem is in the declaration of the method BeginResize(): it is
declared to accept TCollection_MapNode*&, but it should be
TCollection_MapNode**&. The same problem applies to method EndResize().

Actually, these methods do just allocation and allocation of the pointers and
they do not need them to be of the good type, therefore it would be more natural
for them to accept Standard_Address& and thus avoid confusing pointer types.

Naturally, other derived classes besides PackedMapOfInteger should also be
updated after this change.
TagsNo tags attached.
Test case number

Activities

abv

2014-05-03 06:55

manager   ~0029174

Seems to be fixed since at least 6.5.0

Issue History

Date Modified Username Field Change
2011-08-02 11:23 bugmaster Category OCCT:FDC => OCCT:Foundation Classes
2014-05-03 06:55 abv Note Added: 0029174
2014-05-03 06:55 abv Status new => closed
2014-05-03 06:55 abv Resolution open => fixed
2014-05-03 06:55 abv Fixed in Version EMPTY => 6.5.0
2014-05-03 06:55 abv Description Updated