diff --git a/Eigen/src/Sparse/DynamicSparseMatrix.h b/Eigen/src/Sparse/DynamicSparseMatrix.h index 99715d031..abbc995cc 100644 --- a/Eigen/src/Sparse/DynamicSparseMatrix.h +++ b/Eigen/src/Sparse/DynamicSparseMatrix.h @@ -245,10 +245,10 @@ class DynamicSparseMatrix } template - inline DynamicSparseMatrix(const SparseMatrixBase& other) + explicit inline DynamicSparseMatrix(const SparseMatrixBase& other) : m_innerSize(0) { - *this = other.derived(); + Base::operator=(other.derived()); } inline DynamicSparseMatrix(const DynamicSparseMatrix& other)