aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2012-07-02 10:20:44 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2012-07-02 10:20:44 +0200
commiteee34f2da4039adaba5016e1498c3700e6e3e927 (patch)
tree017f589aca881afd705a53396288479cdfeec538
parent746378868a6d19656c09ad8288a7b862d588253f (diff)
workaround compilation issue with MSVC 2005
-rw-r--r--Eigen/src/SparseCore/SparseMatrix.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h
index dbdfb1b5c..3fb829391 100644
--- a/Eigen/src/SparseCore/SparseMatrix.h
+++ b/Eigen/src/SparseCore/SparseMatrix.h
@@ -282,7 +282,11 @@ class SparseMatrix
reserveInnerVectors(reserveSizes);
}
template<class SizesType>
- inline void reserve(const SizesType& reserveSizes, const typename SizesType::Scalar& enableif = typename SizesType::Scalar())
+ inline void reserve(const SizesType& reserveSizes, const typename SizesType::Scalar& enableif =
+ #if (!defined(_MSC_VER)) || (_MSC_VER>=1500) // MSVC 2005 fails to compile with this typename
+ typename
+ #endif
+ SizesType::Scalar())
{
EIGEN_UNUSED_VARIABLE(enableif);
reserveInnerVectors(reserveSizes);