aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/MatrixBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/MatrixBase.h')
-rw-r--r--Eigen/src/Core/MatrixBase.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h
index bb3cc0532..0c3a04ff4 100644
--- a/Eigen/src/Core/MatrixBase.h
+++ b/Eigen/src/Core/MatrixBase.h
@@ -495,7 +495,12 @@ template<typename Derived> class MatrixBase
* 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_ALWAYS_INLINE const typename ei_eval<Derived>::type eval() const
+ #ifdef _MSC_VER
+ inline // MSVC 2008 can't force-inline this method and emits a warning, so do just 'inline'
+ #else
+ EIGEN_ALWAYS_INLINE
+ #endif
+ const typename ei_eval<Derived>::type eval() const
{
return typename ei_eval<Derived>::type(derived());
}