1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0025324: Make OCCT collections copy-constructible

Since TCollection package is going to be obsolete we change only classes that are currently needed to have copy constructor.
This commit is contained in:
msv
2014-10-06 11:45:28 +04:00
committed by bugmaster
parent 61aa7f3d3c
commit 39ef94f8f5
3 changed files with 17 additions and 9 deletions

View File

@@ -37,6 +37,12 @@ class TColStd_PackedMapOfInteger : private TCollection_BasicMap
: TCollection_BasicMap (NbBuckets, Standard_True),
myExtent (0) {}
/// Copy constructor
inline TColStd_PackedMapOfInteger (const TColStd_PackedMapOfInteger& theOther)
: TCollection_BasicMap (1, Standard_True),
myExtent (0)
{ Assign(theOther); }
inline TColStd_PackedMapOfInteger&
operator = (const TColStd_PackedMapOfInteger& Other)
{ return Assign(Other); }
@@ -210,11 +216,6 @@ public:
private:
// ----------- PRIVATE (PROHIBITED) methods
/// Copy constructor - prohibited.
TColStd_PackedMapOfInteger (const TColStd_PackedMapOfInteger& theOther);
// ---------- PRIVATE FIELDS ----------
size_t myExtent;