List: Remove the inherited UList::shallowCopy to avoid accidental misuse

This commit is contained in:
Henry Weller
2016-04-07 21:05:26 +01:00
parent fda9aadb3a
commit 9aaf17d45d
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -158,7 +158,7 @@ slicedBoundaryField
DimensionedField<Type, GeoMesh>::null()
)
);
bf[patchi].shallowCopy(bField[patchi]);
bf[patchi].UList<Type>::shallowCopy(bField[patchi]);
}
}