aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-12-09 15:47:32 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-12-09 15:47:32 +0100
commitfbe18d550780195dc18feb896c35a98b111bd190 (patch)
tree1759c6e8f6088a0559482cf20e582888748d85fb /Eigen
parentdc73430d4b49023ae4a19f9e8b35c64742f528fc (diff)
Forbid the creation of SparseCompressedBase object
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/SparseCore/SparseCompressedBase.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Eigen/src/SparseCore/SparseCompressedBase.h b/Eigen/src/SparseCore/SparseCompressedBase.h
index fb795a0ed..c223e4f42 100644
--- a/Eigen/src/SparseCore/SparseCompressedBase.h
+++ b/Eigen/src/SparseCore/SparseCompressedBase.h
@@ -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>