Fixed/masked more implicit copy constructor warnings

(cherry picked from commit 2883e91ce5a99c391fbf28e20160176b70854992)
This commit is contained in:
Christoph Hertzberg
2021-02-27 16:34:42 +01:00
parent 81b5fe2f0a
commit ca528593f4
3 changed files with 7 additions and 1 deletions

View File

@@ -142,6 +142,9 @@ template<typename MatrixType, unsigned int _Mode> class SparseSelfAdjointView
return *this = src.twistedBy(pnull);
}
// Since we override the copy-assignment operator, we need to explicitly re-declare the copy-constructor
EIGEN_DEFAULT_COPY_CONSTRUCTOR(SparseSelfAdjointView)
template<typename SrcMatrixType,unsigned int SrcMode>
SparseSelfAdjointView& operator=(const SparseSelfAdjointView<SrcMatrixType,SrcMode>& src)
{