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

Remove argument names when using '= default'. #5916

Closed

Conversation

drwells
Copy link
Member

@drwells drwells commented Feb 16, 2018

GCC 4.9 complains about this.

GCC 4.9 complains about this.
@@ -200,13 +200,13 @@ class VectorMemory : public Subscriptor
* Move constructor: this creates a new Pointer by stealing the internal
* data owned by @p p.
*/
Pointer(Pointer &&p) = default;
Pointer(Pointer &&) = default;
Copy link
Member

Choose a reason for hiding this comment

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

I've long been bothered by this warning, but the problem is that if you remove the name, you can't refer to it in the documentation above any more :-(

@drwells
Copy link
Member Author

drwells commented Feb 16, 2018

Thats a good point. I don't see this error with newer releases of GCC so lets just skip this patch.

@drwells drwells closed this Feb 16, 2018
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

2 participants