From 7cfbe35e49fd43d646d2aecf7b93630b3916f2f8 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 29 Oct 2015 21:05:52 +0100 Subject: [PATCH] Fix duplicated declaration --- Eigen/src/SparseCore/SparseMatrixBase.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Eigen/src/SparseCore/SparseMatrixBase.h b/Eigen/src/SparseCore/SparseMatrixBase.h index 74b498a47..ff417302f 100644 --- a/Eigen/src/SparseCore/SparseMatrixBase.h +++ b/Eigen/src/SparseCore/SparseMatrixBase.h @@ -49,11 +49,6 @@ template class SparseMatrixBase >::type PacketReturnType; typedef SparseMatrixBase StorageBaseType; - typedef typename NumTraits::Real RealScalar; - typedef internal::special_scalar_op_base > Base; - - using Base::operator*; - using Base::operator/; typedef Matrix IndexVector; typedef Matrix ScalarVector; @@ -146,6 +141,10 @@ template class SparseMatrixBase inline Derived& derived() { return *static_cast(this); } inline Derived& const_cast_derived() const { return *static_cast(const_cast(this)); } + + typedef internal::special_scalar_op_base > Base; + using Base::operator*; + using Base::operator/; #endif // not EIGEN_PARSED_BY_DOXYGEN #define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::SparseMatrixBase