From 1526de96a072967d41ca58e33a9522acbfa6cf2d Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 3 Feb 2011 17:23:33 +0100 Subject: [PATCH] fix compilation with MSVC --- Eigen/src/Sparse/DynamicSparseMatrix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)