From: Martin Kronbichler Date: Wed, 24 Nov 2021 09:26:48 +0000 (+0100) Subject: Fix compile warning by adding copy constructor to hp iterator X-Git-Tag: v9.4.0-rc1~803^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c1d4eaddc7d6d46f8b1711a5bb760fe99b2727b;p=dealii.git Fix compile warning by adding copy constructor to hp iterator --- diff --git a/include/deal.II/hp/collection.h b/include/deal.II/hp/collection.h index 67b92615d6..48e019e662 100644 --- a/include/deal.II/hp/collection.h +++ b/include/deal.II/hp/collection.h @@ -47,6 +47,17 @@ namespace hp , index(index) {} + /** + * Copy constructor. + */ + CollectionIterator(const CollectionIterator &other) = default; + + /** + * Copy assignment. + */ + CollectionIterator & + operator=(const CollectionIterator &other) = default; + /** * Compare for equality. */ @@ -73,12 +84,6 @@ namespace hp return this->index != other.index; } - /** - * Copy assignment. - */ - CollectionIterator & - operator=(const CollectionIterator &other) = default; - /** * Dereferencing operator: returns the value of the current index. */