Skip to content

Commit

Permalink
Fix compile warning by adding copy constructor to hp iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
kronbichler committed Nov 24, 2021
1 parent 96f8201 commit 02f7c4e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions include/deal.II/hp/collection.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ namespace hp
, index(index)
{}

/**
* Copy assignment.
*/
CollectionIterator(const CollectionIterator<T> &other) = default;

/**
* Copy assignment.
*/
CollectionIterator<T> &
operator=(const CollectionIterator<T> &other) = default;

/**
* Compare for equality.
*/
Expand All @@ -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.
*/
Expand Down

0 comments on commit 02f7c4e

Please sign in to comment.