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

Fix mismatch ambiguous size compilation error #1209

Merged
merged 2 commits into from
Jul 18, 2021

Conversation

hjmjohnson
Copy link
Collaborator

Address compilation issues related to updated version of ITK.

ITK is supporting C++14, and tightening implicit conversion ambiguities. These changes
affect some coding practices that are not recommended.

Prefer to use fixed size vnl_vector_fixed and vnl_matrix_fixed to match the required size for the algorithms.

The previous implementation used generic sized objects and runtime if/else conditionals. Current implementation uses compile time function overloading to accomplish the same behavior.
The WriteImage function conflicts with the same named itk::WriteImage function.

Dis-ambiguate by using the ANTs namespace.
@ntustison
Copy link
Member

Thank you very much, @hjmjohnson .

@ntustison ntustison merged commit 4022fdb into master Jul 18, 2021
@cookpa
Copy link
Member

cookpa commented Jul 19, 2021

The SuperBuild is failing on CircleCI (Ubuntu, GCC 7) and my Mac (Clang 12.0.0). Are there some config options that need to change?

@ntustison
Copy link
Member

Did you include this commit?

@cookpa
Copy link
Member

cookpa commented Jul 19, 2021

I didn't see that. Looks good now. Thanks

@hjmjohnson hjmjohnson deleted the fix-mismatch-ambiguous-size-compilation-error branch May 12, 2022 19:49
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