]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add (private) BlockMatrixArray::Entry::operator=. 3480/head
authorDavid Wells <wellsd2@rpi.edu>
Sun, 6 Nov 2016 12:46:52 +0000 (07:46 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sun, 6 Nov 2016 13:07:49 +0000 (08:07 -0500)
This class implements a (destructive) copy constructor more or less so
that one can use it with std::vector::push_back, so it should disable
operator=.

This fixes a warning caught by PVS studio.

include/deal.II/lac/block_matrix_array.h

index c61b6f338a82f933e48e9e0b9e178fe8f2e53349..0e6da0137c4b3360482929ec6fc0be5bd851641d 100644 (file)
@@ -334,6 +334,13 @@ private:
    * number of blocks per row.
    */
   unsigned int block_cols;
+
+  /**
+   * Assignment operator. Since the copy constructor is destructive (see its
+   * documentation) and only exists for convenience there is no reasonable way
+   * to implement this. Hence this operator is both private and unimplemented.
+   */
+  Entry &operator= (const Entry &);
 };
 
 /*@}*/

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


Typeset in Trocchi and Trocchi Bold Sans Serif.