From: guido Date: Fri, 25 Oct 2002 11:42:34 +0000 (+0000) Subject: Phony value type added X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1d309864ca62f7d9f3e80392dd47382780b26d4;p=dealii-svn.git Phony value type added git-svn-id: https://svn.dealii.org/trunk@6723 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/pointer_matrix.h b/deal.II/lac/include/lac/pointer_matrix.h index bd89093c75..2344ea56de 100644 --- a/deal.II/lac/include/lac/pointer_matrix.h +++ b/deal.II/lac/include/lac/pointer_matrix.h @@ -18,13 +18,29 @@ template class PointerMatrixBase : public Subscriptor { -public: - /** - * Virtual destructor. Does - * nothing except making sure that - * the destructor of the derived - * class is called. - */ + public: + /** + * Value type of this + * matrix. since the matrix + * itself is unknown, we take the + * value type of the + * vector. Therefore, matrix + * entries must be convertible to + * vector entries. + * + * This was defined to make this + * matrix a possible template + * argument to + * @ref{BlockMatrixArray}. + */ + typedef typename VECTOR::value_type value_type; + + /** + * Virtual destructor. Does + * nothing except making sure that + * the destructor of the derived + * class is called. + */ virtual ~PointerMatrixBase (); /**