]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compile warning by adding copy constructor to hp iterator 12989/head
authorMartin Kronbichler <martin.kronbichler@it.uu.se>
Wed, 24 Nov 2021 09:26:48 +0000 (10:26 +0100)
committerMartin Kronbichler <martin.kronbichler@it.uu.se>
Wed, 24 Nov 2021 09:29:20 +0000 (10:29 +0100)
include/deal.II/hp/collection.h

index 67b92615d68c766a0b163bf95ac81b03e5e64750..48e019e6629010fae75040db36f775a1084deb5e 100644 (file)
@@ -47,6 +47,17 @@ namespace hp
       , index(index)
     {}
 
+    /**
+     * Copy constructor.
+     */
+    CollectionIterator(const CollectionIterator<T> &other) = default;
+
+    /**
+     * Copy assignment.
+     */
+    CollectionIterator<T> &
+    operator=(const CollectionIterator<T> &other) = default;
+
     /**
      * Compare for equality.
      */
@@ -73,12 +84,6 @@ namespace hp
       return this->index != other.index;
     }
 
-    /**
-     * Copy assignment.
-     */
-    CollectionIterator<T> &
-    operator=(const CollectionIterator<T> &other) = default;
-
     /**
      * Dereferencing operator: returns the value of the current index.
      */

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.