diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-02-03 17:23:33 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-02-03 17:23:33 +0100 |
commit | 1526de96a072967d41ca58e33a9522acbfa6cf2d (patch) | |
tree | a57fcb7f71b02fb6869618cae0d7721acff8901d | |
parent | 4489c56c9e86f4091576dcf30bb22cac7e6c17b7 (diff) |
fix compilation with MSVC
-rw-r--r-- | Eigen/src/Sparse/DynamicSparseMatrix.h | 4 |
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) |