mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Forbid the creation of SparseCompressedBase object
This commit is contained in:
parent
dc73430d4b
commit
fbe18d5507
@ -96,6 +96,11 @@ class SparseCompressedBase
|
|||||||
/** \returns whether \c *this is in compressed form. */
|
/** \returns whether \c *this is in compressed form. */
|
||||||
inline bool isCompressed() const { return innerNonZeroPtr()==0; }
|
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>
|
template<typename Derived>
|
||||||
|
Loading…
Reference in New Issue
Block a user