Skip to content

Comments

COMP: Use ImageConstIterator::ComputeIndex() in Review module#5810

Merged
thewtex merged 1 commit intoInsightSoftwareConsortium:mainfrom
N-Dekker:COMP-Replace-GetIndex-with-ComputeIndex-in-Review-module
Feb 18, 2026
Merged

COMP: Use ImageConstIterator::ComputeIndex() in Review module#5810
thewtex merged 1 commit intoInsightSoftwareConsortium:mainfrom
N-Dekker:COMP-Replace-GetIndex-with-ComputeIndex-in-Review-module

Conversation

@N-Dekker
Copy link
Contributor

Replaced function calls of the form iterator.GetIndex() with iterator.ComputeIndex(), for iterators derived from ImageConstIterator, in "Modules/Nonunit/Review"

Fixes compile errors that occur when compiling with Module_ITKReview=ON and ITK_FUTURE_LEGACY_REMOVE=ON, like:

error: no member named 'GetIndex' in 'itk::ImageRegionConstIterator'

As occurred at RogueResearch24/Mac13.x-AppleClang-dbg-Universal: https://open.cdash.org/viewBuildError.php?buildid=11052824

Reported by Bradley Lowekamp (@blowekamp) at
#5803 (comment)

Replaced function calls of the form `iterator.GetIndex()` with
`iterator.ComputeIndex()`, for iterators derived from `ImageConstIterator`, in
"Modules/Nonunit/Review"

Fixes compile errors that occur when compiling with `Module_ITKReview=ON` _and_
`ITK_FUTURE_LEGACY_REMOVE=ON`, like:

    error: no member named 'GetIndex' in 'itk::ImageRegionConstIterator'

As occurred at RogueResearch24/Mac13.x-AppleClang-dbg-Universal:
https://open.cdash.org/viewBuildError.php?buildid=11052824

Reported by Bradley Lowekamp at
InsightSoftwareConsortium#5803 (comment)
@github-actions github-actions bot added the type:Compiler Compiler support or related warnings label Feb 17, 2026
@N-Dekker N-Dekker marked this pull request as ready for review February 17, 2026 15:55
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

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

🚀

@thewtex thewtex merged commit 027e59e into InsightSoftwareConsortium:main Feb 18, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:Compiler Compiler support or related warnings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants