diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2009-09-03 13:46:44 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2009-09-03 13:46:44 +0200 |
commit | 41aea9508e55b83f3834d189ef87118b9066b106 (patch) | |
tree | 1ef3f546e133e65c7ff589eaa9b5ef172b37edd3 /Eigen/src | |
parent | 3eb37fe1fb36be375c6211fc00d56a89b08b12fb (diff) |
This seems to be important for MSVC to optimize the size of empty base classes.
Diffstat (limited to 'Eigen/src')
-rw-r--r-- | Eigen/src/Core/MatrixBase.h | 8 |
1 files 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<typename Derived> struct AnyMatrixBase +template<typename Derived> struct AnyMatrixBase + : public ei_special_scalar_op_base<Derived,typename ei_traits<Derived>::Scalar, + typename NumTraits<typename ei_traits<Derived>::Scalar>::Real> { typedef typename ei_plain_matrix_type<Derived>::type PlainMatrixType; @@ -91,9 +93,7 @@ template<typename Derived> struct AnyMatrixBase */ template<typename Derived> class MatrixBase #ifndef EIGEN_PARSED_BY_DOXYGEN - : public AnyMatrixBase<Derived>, - public ei_special_scalar_op_base<Derived,typename ei_traits<Derived>::Scalar, - typename NumTraits<typename ei_traits<Derived>::Scalar>::Real> + : public AnyMatrixBase<Derived> #endif // not EIGEN_PARSED_BY_DOXYGEN { public: |