From: David Wells Date: Sun, 2 Jul 2023 00:40:09 +0000 (-0400) Subject: Merge pull request #15544 from bangerth/affine-constraints-3 X-Git-Tag: relicensing~821 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5153eeeb0686994582836ff7f54aa5585548408;p=dealii.git Merge pull request #15544 from bangerth/affine-constraints-3 Simplify constructors/operators of AffineConstraints::ConstraintLine. --- b5153eeeb0686994582836ff7f54aa5585548408 diff --cc include/deal.II/lac/affine_constraints.h index f5c77b93a5,bdb4671b17..2eed5643f0 --- a/include/deal.II/lac/affine_constraints.h +++ b/include/deal.II/lac/affine_constraints.h @@@ -1664,10 -1669,33 +1669,15 @@@ public /** * Copy assignment. */ - template ConstraintLine & - operator=(const ConstraintLineType &other); + operator=(const ConstraintLine &other) = default; + + /** + * Move assignment. + */ + ConstraintLine & + operator=(ConstraintLine &&other) noexcept = default; - /** - * This operator is a bit weird and unintuitive: it compares the line - * numbers of two lines. We need this to sort the lines; in fact we could - * do this using a comparison predicate. However, this way, it is easier, - * albeit unintuitive since two lines really have no god-given order - * relation. - */ - bool - operator<(const ConstraintLine &) const; - - /** - * This operator is likewise weird: it checks whether the line indices of - * the two operands are equal, irrespective of the fact that the contents - * of the line may be different. - */ - bool - operator==(const ConstraintLine &) const; - /** * Determine an estimate for the memory consumption (in bytes) of this * object.