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

COMP: missing include in itkMetaDataObjectDetail.h #4874

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

pzaffino
Copy link
Contributor

@pzaffino pzaffino commented Oct 9, 2024

Missing include in tkMetaDataObjectDetail.h.
On my system (Arch Linux, GCC 14.2.1, cmake 3.30.5) it didn't compile without this edit.

@github-actions github-actions bot added type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances area:Core Issues affecting the Core module labels Oct 9, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for contributing a pull request! 🙏

Welcome to the ITK community! 🤗👋☀️

We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜
More support and guidance on the contribution process can be found in our contributing guide. 📖

This is an automatic message. Allow for time for the ITK community to be able to read the pull request and comment
on it.

Copy link
Contributor

@N-Dekker N-Dekker left a comment

Choose a reason for hiding this comment

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

@pzaffino Thank you for your fix, Pablo 👍

It appears that the CI complains about the commit message. It should be more like:

COMP: Add missing include in itkMetaDataObjectDetail.h

Specifically, the CI wants to have one of those prefixes: BUG, COMP, DOC, ENH, PERF, or STYLE. I think "COMP" is most appropriate in this case, as you are addressing a compilation problem.

Can you please amend you commit, and then do git review-push --force?

@@ -21,6 +21,7 @@

#include <type_traits>
#include <utility>
#include <ostream>
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of <ostream>, would <iosfwd> also work for you? You know, <iosfwd> is more lightweight, as it only forward-declares std::ostream.

@pzaffino pzaffino changed the title BUG: missing include in itkMetaDataObjectDetail.h COMP: missing include in itkMetaDataObjectDetail.h Oct 9, 2024
@github-actions github-actions bot added type:Compiler Compiler support or related warnings and removed type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances labels Oct 9, 2024
@pzaffino
Copy link
Contributor Author

pzaffino commented Oct 9, 2024

@N-Dekker it works also with iosfwd.
The second commit is done.

Copy link
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

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

Let's squash and rewrite the commit message upon merge.

@N-Dekker
Copy link
Contributor

@pzaffino Thank you very much! Is it OK to you if I squash the two commits together and adjust the commit message?

@pzaffino
Copy link
Contributor Author

pzaffino commented Oct 10, 2024 via email

@N-Dekker N-Dekker merged commit 15af3ae into InsightSoftwareConsortium:master Oct 10, 2024
12 of 13 checks passed
@N-Dekker
Copy link
Contributor

In general I'm reluctant to adjust someone else's commits (like GitHub's Squash and Merge does). But in this case, well, it's just one line of code and it has high priority, in my opinion, so I just did it 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Core Issues affecting the Core module type:Compiler Compiler support or related warnings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants