Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile warning by adding copy constructor to hp iterator #12989

Merged
merged 1 commit into from Nov 24, 2021

Conversation

kronbichler
Copy link
Member

My compiler (clang-13) complained about

/home/kronbichler/deal/deal.II/include/deal.II/hp/collection.h:80:5: warning: definition of implicit 
copy constructor for 'CollectionIterator<dealii::FiniteElement<1>>' is deprecated because it has a 
user-declared copy assignment operator [-Wdeprecated-copy]
    operator=(const CollectionIterator<T> &other) = default;

So we better add a copy constructor as well. Alternatively, we could have relied on the implicitly generated copy assignment operator.

@peterrum peterrum merged commit 20753e8 into dealii:master Nov 24, 2021
@kronbichler kronbichler deleted the warning_copy_constructor branch May 11, 2022 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants