From 41aea9508e55b83f3834d189ef87118b9066b106 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Thu, 3 Sep 2009 13:46:44 +0200 Subject: [PATCH] This seems to be important for MSVC to optimize the size of empty base classes. --- Eigen/src/Core/MatrixBase.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h index 9ac964168..fececdd5f 100644 --- a/Eigen/src/Core/MatrixBase.h +++ b/Eigen/src/Core/MatrixBase.h @@ -35,7 +35,9 @@ * * Notice that this class is trivial, it is only used to disambiguate overloaded functions. */ -template struct AnyMatrixBase +template struct AnyMatrixBase + : public ei_special_scalar_op_base::Scalar, + typename NumTraits::Scalar>::Real> { typedef typename ei_plain_matrix_type::type PlainMatrixType; @@ -91,9 +93,7 @@ template struct AnyMatrixBase */ template class MatrixBase #ifndef EIGEN_PARSED_BY_DOXYGEN - : public AnyMatrixBase, - public ei_special_scalar_op_base::Scalar, - typename NumTraits::Scalar>::Real> + : public AnyMatrixBase #endif // not EIGEN_PARSED_BY_DOXYGEN { public: