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: Add includes for uint32_t in wrapping #3736

Merged

Conversation

thewtex
Copy link
Member

@thewtex thewtex commented Nov 11, 2022

PR Checklist

  • No API changes were made (or the changes have been approved)
  • No major design changes were made (or the changes have been approved)
  • Added test (or behavior not changed)
  • Updated API documentation (or API not changed)
  • Added license to new files (if any)
  • Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5
  • Added ITK examples for all new major features (if any)

Refer to the ITK Software Guide for
further development details if necessary.

@github-actions github-actions bot added the area:Core Issues affecting the Core module label Nov 11, 2022
Comment on lines 32 to +35
#include "itkObjectFactory.h"
#include "itkNumericTraits.h"
#include "itkThreadSupport.h"
#include "itkIntTypes.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

No problem, but I did notice that "itkObjectFactory.h" already indirectly includes "itkIntTypes.h", via itkObjectFactoryBase.h and then via itkCommonEnums.h:

#include "itkIntTypes.h"

While your proposed #include "itkIntTypes.h" is fine to me, I wonder if it has any effect.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this seems to be a compiler issue. It addresses issues reported in #3506

@thewtex thewtex force-pushed the progress-int-types.h branch from 4103cdf to fc1f6cc Compare November 14, 2022 03:29
@thewtex thewtex changed the title WIP: COMP: Add includes for uint32_t in wrapping COMP: Add includes for uint32_t in wrapping Nov 14, 2022
@thewtex thewtex marked this pull request as ready for review November 14, 2022 03:30
@thewtex thewtex added this to the ITK 5.3.0 milestone Nov 14, 2022
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.

Thanks Matt. While I understand that the aim is to fix issue #3506, it is also in accordance with the "Include what you use" strategy 😃 https://include-what-you-use.org

@thewtex thewtex merged commit 38696b2 into InsightSoftwareConsortium:master Nov 14, 2022
@thewtex thewtex deleted the progress-int-types.h branch November 14, 2022 13:57
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants