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

Fixed compiler warning -Wdeprecated with clang. #452

Merged
merged 2 commits into from
Jan 5, 2017

Conversation

jbreitbart
Copy link
Contributor

Starting with C++11 implicit copy-constructors are deprecated when the class
has a user defined destructor.

Starting with C++11 implicit copy-constructors are deprecated when the class
has a user defined destructor.
Copy link
Owner

@jbeder jbeder left a comment

Choose a reason for hiding this comment

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

LGTM, pending one nit about the documentation change.

@@ -47,7 +47,7 @@ class YAML_CPP_API Parser : private noncopyable {
void Load(std::istream& in);

/**
* Handles the next document by calling events on the {@param eventHandler}.
* Handles the next document by calling events on the { @param eventHandler }.
Copy link
Owner

Choose a reason for hiding this comment

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

Since this seems to be an incorrect way to refer to a parameter (I can't seem to find any indication it's even allowed to refer to a @param inline like this), can you just change it to @code? I don't want to special-case this one for having a space at the end.

yaml-cpp/parser.h:50:65: warning: parameter 'eventHandler}.' not found in the function
      declaration [-Wdocumentation]
   * Handles the next document by calling events on the {@param eventHandler}.
                                                                ^~~~~~~~~~~~~~
yaml-cpp/parser.h:50:65: note: did you mean 'eventHandler'?
   * Handles the next document by calling events on the {@param eventHandler}.
                                                                ^~~~~~~~~~~~~~
                                                                eventHandler
@jbreitbart
Copy link
Contributor Author

Fixed. Sorry, I must have overlooked the comment style in the rest of the file.

@jbeder jbeder merged commit 86c69bb into jbeder:master Jan 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants