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

Add override keyword to functions in PoseToPointFactor #956

Merged
merged 2 commits into from
Dec 9, 2021

Conversation

dwisth
Copy link
Contributor

@dwisth dwisth commented Dec 8, 2021

Really minor PR to fix compiler warnings about missing override keyword.

@@ -45,8 +45,9 @@ class PoseToPointFactor : public NoiseModelFactor2<POSE, POINT> {
/** implement functions needed for Testable */

/** print */
virtual void print(const std::string& s, const KeyFormatter& keyFormatter =
DefaultKeyFormatter) const {
virtual void print(
Copy link
Member

Choose a reason for hiding this comment

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

I think we should not have virtual and override. One or the other. Surprised that does not trigger a warning (check clang)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, my mistake! I just fixed it

@dellaert dellaert removed the request for review from varunagrawal December 8, 2021 21:56
@varunagrawal varunagrawal merged commit 3615c4b into develop Dec 9, 2021
@varunagrawal varunagrawal deleted the fix/compiler-warnings-posetopointfactor branch December 9, 2021 14:37
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.

3 participants