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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user