From 8275153215094b4a8fbfad0a5c9298764912a5bb Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Mon, 11 May 2026 08:43:30 -0500 Subject: [PATCH] COMP: Add itkImageRegionConstIteratorWithIndex.h include for ITK6 compat ITK upstream main (v6 prep) has trimmed transitive includes. BVeR.cxx uses `itk::ImageRegionConstIteratorWithIndex` but did not include its declaring header directly; under ITK 5.x the header was transitively pulled in via one of the other ITK includes, but ITK upstream main now produces: BVeR.cxx:185:14: error: 'ImageRegionConstIteratorWithIndex' is not a member of 'itk' Add the explicit include. Backward compatible with ITK 5.x (the header has always existed under that name). --- BVeR/BVeR.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/BVeR/BVeR.cxx b/BVeR/BVeR.cxx index 9eea1d1..88c065c 100644 --- a/BVeR/BVeR.cxx +++ b/BVeR/BVeR.cxx @@ -6,6 +6,7 @@ #include "itkBinaryThresholdImageFilter.h" #include "itkBinaryContourImageFilter.h" #include "itkImageRegionIterator.h" +#include "itkImageRegionConstIteratorWithIndex.h" #include "itkNeighborhoodIterator.h" #include "itkConstantBoundaryCondition.h" #include "itkConstNeighborhoodIterator.h"