From e236d3443c79f38aa721d95e64c275abbb5df10f Mon Sep 17 00:00:00 2001 From: Angelos Mantzaflaris Date: Wed, 7 Dec 2016 00:37:48 +0100 Subject: [PATCH] Remove superfluous const's (can cause warnings on some Intel compilers) --- Eigen/src/Core/IO.h | 2 +- Eigen/src/SparseCore/SparseMatrixBase.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Eigen/src/Core/IO.h b/Eigen/src/Core/IO.h index 94e00f58b..644228c3f 100644 --- a/Eigen/src/Core/IO.h +++ b/Eigen/src/Core/IO.h @@ -105,7 +105,7 @@ class WithFormat } protected: - const typename ExpressionType::Nested m_matrix; + typename ExpressionType::Nested m_matrix; IOFormat m_format; }; diff --git a/Eigen/src/SparseCore/SparseMatrixBase.h b/Eigen/src/SparseCore/SparseMatrixBase.h index 813accce1..658ac0337 100644 --- a/Eigen/src/SparseCore/SparseMatrixBase.h +++ b/Eigen/src/SparseCore/SparseMatrixBase.h @@ -213,7 +213,7 @@ template class SparseMatrixBase if (Flags&RowMajorBit) { - const Nested nm(m.derived()); + Nested nm(m.derived()); internal::evaluator thisEval(nm); for (Index row=0; row class SparseMatrixBase } else { - const Nested nm(m.derived()); + Nested nm(m.derived()); internal::evaluator thisEval(nm); if (m.cols() == 1) { Index row = 0;