mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
This seems to be important for MSVC to optimize the size of empty base classes.
This commit is contained in:
parent
3eb37fe1fb
commit
41aea9508e
@ -35,7 +35,9 @@
|
|||||||
*
|
*
|
||||||
* Notice that this class is trivial, it is only used to disambiguate overloaded functions.
|
* 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;
|
typedef typename ei_plain_matrix_type<Derived>::type PlainMatrixType;
|
||||||
|
|
||||||
@ -91,9 +93,7 @@ template<typename Derived> struct AnyMatrixBase
|
|||||||
*/
|
*/
|
||||||
template<typename Derived> class MatrixBase
|
template<typename Derived> class MatrixBase
|
||||||
#ifndef EIGEN_PARSED_BY_DOXYGEN
|
#ifndef EIGEN_PARSED_BY_DOXYGEN
|
||||||
: public AnyMatrixBase<Derived>,
|
: public AnyMatrixBase<Derived>
|
||||||
public ei_special_scalar_op_base<Derived,typename ei_traits<Derived>::Scalar,
|
|
||||||
typename NumTraits<typename ei_traits<Derived>::Scalar>::Real>
|
|
||||||
#endif // not EIGEN_PARSED_BY_DOXYGEN
|
#endif // not EIGEN_PARSED_BY_DOXYGEN
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user