# ITK build Error in itk::ShapedNeighborhoodIterator

**URL:** <https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861>\
**Category:** Engineering\
**Tags:** build\
**Created:** [March 14, 2022, 4:15am UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861 "2022-03-14T04:15:04Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![codeling](https://discourse.itk.org/user_avatar/discourse.itk.org/codeling/32/2214_2.png) [@codeling](https://discourse.itk.org/u/codeling)\
**Post date:** [January 2, 2023, 6:54pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/19 "2023-01-02T18:54:40Z")

</div>

I can confirm those findings:

- I can reproduce the error with the simple example above if I switch on /permissive- mode (which we have configured in our project as well, where I saw the error originally); (EDIT: on further tests, I can even reproduce it with only `#include "itkConnectedComponentImageFilter.h"`)

- and the errors go away with the fix provided above

Thanks!

---

_[View the full topic](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861)._
