From ca528593f4c64a8464df9ac297c42561b14100be Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Sat, 27 Feb 2021 16:34:42 +0100 Subject: Fixed/masked more implicit copy constructor warnings (cherry picked from commit 2883e91ce5a99c391fbf28e20160176b70854992) --- Eigen/src/SparseCore/SparseSelfAdjointView.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Eigen/src/SparseCore') diff --git a/Eigen/src/SparseCore/SparseSelfAdjointView.h b/Eigen/src/SparseCore/SparseSelfAdjointView.h index 76117a010..85b00e10e 100644 --- a/Eigen/src/SparseCore/SparseSelfAdjointView.h +++ b/Eigen/src/SparseCore/SparseSelfAdjointView.h @@ -142,6 +142,9 @@ template 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 SparseSelfAdjointView& operator=(const SparseSelfAdjointView& src) { -- cgit v1.2.3