From 4c1d4eaddc7d6d46f8b1711a5bb760fe99b2727b Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 24 Nov 2021 10:26:48 +0100 Subject: [PATCH] Fix compile warning by adding copy constructor to hp iterator --- include/deal.II/hp/collection.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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. */ -- 2.39.5