From dd9ff1b9a67c7757dcf566c05b2ee5cbfac6c715 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Tue, 9 Mar 2010 09:04:21 +0100 Subject: [PATCH] Fix MSVC warnings. --- Eigen/src/Core/DenseBase.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h index 52a883811..29a95b8db 100644 --- a/Eigen/src/Core/DenseBase.h +++ b/Eigen/src/Core/DenseBase.h @@ -501,8 +501,12 @@ template class DenseBase * Notice that in the case of a plain matrix or vector (not an expression) this function just returns * a const reference, in order to avoid a useless copy. */ - EIGEN_STRONG_INLINE const typename ei_eval::type eval() const - { return typename ei_eval::type(derived()); } + inline const typename ei_eval::type eval() const + { + // MSVC cannot honor strong inlining when the return type + // is a dynamic matrix + return typename ei_eval::type(derived()); + } template void swap(DenseBase EIGEN_REF_TO_TEMPORARY other);