diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h index 314851d2e..3a08c027c 100644 --- a/Eigen/src/Core/Product.h +++ b/Eigen/src/Core/Product.h @@ -74,8 +74,8 @@ class Product : public ProductImpl diff --git a/Eigen/src/Geometry/OrthoMethods.h b/Eigen/src/Geometry/OrthoMethods.h index 11ad5829c..4c1bf5fcd 100644 --- a/Eigen/src/Geometry/OrthoMethods.h +++ b/Eigen/src/Geometry/OrthoMethods.h @@ -78,8 +78,8 @@ MatrixBase::cross3(const MatrixBase& other) const typedef typename internal::nested::type DerivedNested; typedef typename internal::nested::type OtherDerivedNested; - const DerivedNested lhs(derived()); - const OtherDerivedNested rhs(other.derived()); + DerivedNested lhs(derived()); + OtherDerivedNested rhs(other.derived()); return internal::cross3_impl::type, diff --git a/Eigen/src/SparseCore/SparseBlock.h b/Eigen/src/SparseCore/SparseBlock.h index 8ff64de7b..cd97bcfdc 100644 --- a/Eigen/src/SparseCore/SparseBlock.h +++ b/Eigen/src/SparseCore/SparseBlock.h @@ -61,7 +61,7 @@ public: protected: - const typename XprType::Nested m_matrix; + typename XprType::Nested m_matrix; Index m_outerStart; const internal::variable_if_dynamic m_outerSize; }; @@ -391,7 +391,7 @@ public: friend class InnerIterator; friend class ReverseInnerIterator; - const typename XprType::Nested m_matrix; + typename XprType::Nested m_matrix; const internal::variable_if_dynamic m_startRow; const internal::variable_if_dynamic m_startCol; const internal::variable_if_dynamic m_blockRows; diff --git a/Eigen/src/SparseCore/SparseDot.h b/Eigen/src/SparseCore/SparseDot.h index b25911c72..dfeb3a8df 100644 --- a/Eigen/src/SparseCore/SparseDot.h +++ b/Eigen/src/SparseCore/SparseDot.h @@ -54,8 +54,8 @@ SparseMatrixBase::dot(const SparseMatrixBase& other) cons typedef typename internal::remove_all::type NestedCleaned; typedef typename internal::remove_all::type OtherNestedCleaned; - const Nested nthis(derived()); - const OtherNested nother(other.derived()); + Nested nthis(derived()); + OtherNested nother(other.derived()); typename NestedCleaned::InnerIterator i(nthis,0); typename OtherNestedCleaned::InnerIterator j(nother,0);