]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #15544 from bangerth/affine-constraints-3
authorDavid Wells <drwells@email.unc.edu>
Sun, 2 Jul 2023 00:40:09 +0000 (20:40 -0400)
committerGitHub <noreply@github.com>
Sun, 2 Jul 2023 00:40:09 +0000 (20:40 -0400)
Simplify constructors/operators of AffineConstraints::ConstraintLine.

1  2 
include/deal.II/lac/affine_constraints.h

index f5c77b93a5957740634ee4d94a6cca3cc88354a7,bdb4671b17f4986d75fe3361716cc9ddf01d7f3e..2eed5643f0ed3bde21d9ef3b10575e240f1d9e26
@@@ -1664,10 -1669,33 +1669,15 @@@ public
      /**
       * Copy assignment.
       */
-     template <typename ConstraintLineType>
      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.

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.