Forbid the creation of SparseCompressedBase object

This commit is contained in:
Gael Guennebaud 2015-12-09 15:47:32 +01:00
parent dc73430d4b
commit fbe18d5507

View File

@ -95,7 +95,12 @@ class SparseCompressedBase
/** \returns whether \c *this is in compressed form. */
inline bool isCompressed() const { return innerNonZeroPtr()==0; }
protected:
/** Default constructor. Do nothing. */
SparseCompressedBase() {}
private:
template<typename OtherDerived> explicit SparseCompressedBase(const SparseCompressedBase<OtherDerived>&);
};
template<typename Derived>