mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
List: Remove the inherited UList::shallowCopy to avoid accidental misuse
This commit is contained in:
@ -208,6 +208,11 @@ public:
|
||||
//- Return subscript-checked element of UList.
|
||||
inline T& newElmt(const label);
|
||||
|
||||
|
||||
//- Disallow implicit shallowCopy
|
||||
void shallowCopy(const UList<T>&) = delete;
|
||||
|
||||
|
||||
// Member operators
|
||||
|
||||
//- Assignment from UList operator. Takes linear time.
|
||||
|
||||
@ -158,7 +158,7 @@ slicedBoundaryField
|
||||
DimensionedField<Type, GeoMesh>::null()
|
||||
)
|
||||
);
|
||||
bf[patchi].shallowCopy(bField[patchi]);
|
||||
bf[patchi].UList<Type>::shallowCopy(bField[patchi]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user