Optimize Ref<SparseMatrix> by removing useless default initialisation of SparseMapBase and SparseMatrix

This commit is contained in:
Gael Guennebaud
2015-10-06 11:57:03 +02:00
parent 9a070638de
commit 945b80c83e
2 changed files with 13 additions and 5 deletions

View File

@@ -120,6 +120,9 @@ class SparseMapBase<Derived,ReadOnlyAccessors>
/** Empty destructor */
inline ~SparseMapBase() {}
protected:
inline SparseMapBase() {}
};
template<typename Derived>
@@ -172,6 +175,9 @@ class SparseMapBase<Derived,WriteAccessors>
/** Empty destructor */
inline ~SparseMapBase() {}
protected:
inline SparseMapBase() {}
};
template<typename MatScalar, int MatOptions, typename MatIndex, int Options, typename StrideType>