* structure.
*/
virtual ~SparseMatrix ();
+ /**
+ * Pseudo operator only copying empty objects.
+ */
+ SparseMatrix<number>& operator = (const SparseMatrix<number> &);
+
/**
// friends
template <typename somenumber> friend class SparseMatrix<somenumber>;
- /**
- * Made #operator =# private to
- * avoid improper use.
- */
- SparseMatrix<number>& operator = (const SparseMatrix<number> &);
-
};
Assert (m.max_len==0, ExcInvalidConstructorCall());
};
+template <typename number>
+SparseMatrix<number>&
+SparseMatrix<number>::operator = (const SparseMatrix<number> &m)
+{
+ Assert (m.cols==0, ExcInvalidConstructorCall());
+ Assert (m.val==0, ExcInvalidConstructorCall());
+ Assert (m.max_len==0, ExcInvalidConstructorCall());
+ return *this;
+};
+
template <typename number>
SparseMatrix<number>::SparseMatrix (const SparseMatrixStruct &c) :
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams