From: Timo Heister Date: Mon, 13 Apr 2015 21:37:53 +0000 (-0400) Subject: ConstraintMatrix copy explicit and disable assignment X-Git-Tag: v8.3.0-rc1~282^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F793%2Fhead;p=dealii.git ConstraintMatrix copy explicit and disable assignment - make Copy constructor explicit - make conversion from IndexSet explicit - disable operator= --- diff --git a/include/deal.II/lac/constraint_matrix.h b/include/deal.II/lac/constraint_matrix.h index 0f65eb79b3..773fda0ad6 100644 --- a/include/deal.II/lac/constraint_matrix.h +++ b/include/deal.II/lac/constraint_matrix.h @@ -181,12 +181,12 @@ public: * The IndexSet allows the ConstraintMatrix to save memory. Otherwise * internal data structures for all possible indices will be created. */ - ConstraintMatrix (const IndexSet &local_constraints = IndexSet()); + explicit ConstraintMatrix (const IndexSet &local_constraints = IndexSet()); /** * Copy constructor */ - ConstraintMatrix (const ConstraintMatrix &constraint_matrix); + explicit ConstraintMatrix (const ConstraintMatrix &constraint_matrix); /** * clear() the ConstraintMatrix object and supply an IndexSet with lines @@ -1318,6 +1318,12 @@ private: const Vector &local_vector, const std::vector &local_dof_indices, const FullMatrix &local_matrix) const; + + /** + * The assignment operator is not implemented for performance reasons. You + * can clear() or reinit() and merge() manually if needed. + */ + ConstraintMatrix &operator= (const ConstraintMatrix &other); };