From: David Wells Date: Sun, 6 Nov 2016 12:46:52 +0000 (-0500) Subject: Add (private) BlockMatrixArray::Entry::operator=. X-Git-Tag: v8.5.0-rc1~449^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28ee6f867887b49c6c423cd0cc3807350bd0a402;p=dealii.git Add (private) BlockMatrixArray::Entry::operator=. 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. --- diff --git a/include/deal.II/lac/block_matrix_array.h b/include/deal.II/lac/block_matrix_array.h index c61b6f338a..0e6da0137c 100644 --- a/include/deal.II/lac/block_matrix_array.h +++ b/include/deal.II/lac/block_matrix_array.h @@ -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 &); }; /*@}*/