From: guido Date: Tue, 12 Feb 2002 11:04:14 +0000 (+0000) Subject: FullMatrix as friend X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7d0f9b8419a5045eba219c954422e0fd0c3c7e3;p=dealii-svn.git FullMatrix as friend git-svn-id: https://svn.dealii.org/trunk@5506 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/vector2d.h b/deal.II/base/include/base/vector2d.h index 450683daf4..ba5826cbb9 100644 --- a/deal.II/base/include/base/vector2d.h +++ b/deal.II/base/include/base/vector2d.h @@ -77,12 +77,7 @@ class vector2d : public Subscriptor vector2d& operator = (const vector2d& src); /** - * Destructor. Free allocated memory. - */ - ~vector2d (); - - /** - * Assignment operator. + * Copy operator. * Copy all elements of @p{src} * into the array. The size is * adjusted if needed. @@ -93,6 +88,11 @@ class vector2d : public Subscriptor */ template vector2d& operator = (const vector2d &src); + + /** + * Destructor. Free allocated memory. + */ + ~vector2d (); /** * Set dimension to $m\times n$ @@ -225,6 +225,16 @@ class vector2d : public Subscriptor * Number of Rows */ unsigned int num_rows; + /** + * Friend declaration needed for + * inter-type copy operator. + */ + template friend class vector2d; + + /** + * This is unfortunately needed. + */ + template friend class FullMatrix; };