aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-02-03 17:23:33 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-02-03 17:23:33 +0100
commit1526de96a072967d41ca58e33a9522acbfa6cf2d (patch)
treea57fcb7f71b02fb6869618cae0d7721acff8901d
parent4489c56c9e86f4091576dcf30bb22cac7e6c17b7 (diff)
fix compilation with MSVC
-rw-r--r--Eigen/src/Sparse/DynamicSparseMatrix.h4
1 files 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<typename OtherDerived>
- inline DynamicSparseMatrix(const SparseMatrixBase<OtherDerived>& other)
+ explicit inline DynamicSparseMatrix(const SparseMatrixBase<OtherDerived>& other)
: m_innerSize(0)
{
- *this = other.derived();
+ Base::operator=(other.derived());
}
inline DynamicSparseMatrix(const DynamicSparseMatrix& other)