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

Make FEValuesViews::* objects movable. #16298

Merged
merged 1 commit into from Nov 27, 2023
Merged

Conversation

bangerth
Copy link
Member

I found out the hard way (see #16297) that the FEValuesViews::* classes are not movable even though the move constructors and move assignment operators are marked with =default. That's because these classes have const member variables that mean that =default equals =delete -- not what one thinks about at first.

I want to make these classes movable because then we can lazily construct them with Lazy<T>, see #16182. I have a patch ready for this, but it relies on #16295. The changes here can stand on their own, however.

Copy link
Member

@blaisb blaisb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't foresee any issue with this from my limited knowledge. Looks good

@masterleinad masterleinad merged commit 60619ae into dealii:master Nov 27, 2023
14 of 15 checks passed
@bangerth bangerth deleted the movable branch November 27, 2023 15:48
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