From 91b2fa298579c171c8e5c2f54b55a264f2484a62 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 3 Oct 2016 10:21:58 +0200 Subject: [PATCH] Workaround MSVC compilation issue (Visual messed up with the BlockType defined in the base class, and the redefined one) --- Eigen/src/SparseCore/SparseBlock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/SparseCore/SparseBlock.h b/Eigen/src/SparseCore/SparseBlock.h index 7971d1e9c..99886079d 100644 --- a/Eigen/src/SparseCore/SparseBlock.h +++ b/Eigen/src/SparseCore/SparseBlock.h @@ -29,13 +29,13 @@ public: { typedef typename BlockImpl::Index Index; public: - inline InnerIterator(const BlockType& xpr, Index outer) + inline InnerIterator(const Block& xpr, Index outer) : XprType::InnerIterator(xpr.m_matrix, xpr.m_outerStart + outer), m_outer(outer) {} inline Index row() const { return IsRowMajor ? m_outer : this->index(); } inline Index col() const { return IsRowMajor ? this->index() : m_outer; } protected: - Index m_outer; + Index m_outer; }; class ReverseInnerIterator: public XprType::ReverseInnerIterator {