mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0023726: Wrong usage of NCollection_StdAllocator<void> in QANColStdAllocator2
Fixed compilation error within g++ 4.7.2
This commit is contained in:
@@ -117,7 +117,9 @@ static Standard_Integer QANColStdAllocator2(Draw_Interpretor& di, Standard_Integ
|
|||||||
}
|
}
|
||||||
|
|
||||||
//using void-specialization allocator
|
//using void-specialization allocator
|
||||||
std::vector<int, NCollection_StdAllocator<void> > aV2;
|
NCollection_StdAllocator<void> aVAlloc;
|
||||||
|
std::vector<int, NCollection_StdAllocator<int> > aV2 (aVAlloc);
|
||||||
|
|
||||||
aV2.resize (10);
|
aV2.resize (10);
|
||||||
aV2.push_back (-1);
|
aV2.push_back (-1);
|
||||||
if ( aV2.size() == size_t (11) ) {
|
if ( aV2.size() == size_t (11) ) {
|
||||||
|
Reference in New Issue
Block a user