# 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:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Astha](https://discourse.itk.org/letter_avatar_proxy/v4/letter/a/7ab992/32.png) [@Astha](https://discourse.itk.org/u/Astha)
#### Post date: [March 14, 2022, 4:15am UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/1 "2022-03-14T04:15:04Z")

</div>

Hello all,

We have created a DLL project to perform pre-processing operation and morphological operation on dicom data.  
After that, we wrote an application project to use this generated DLL to perform all operations. In that process, I am getting below error.  
Error C2516 ‘itk::ShapedNeighborhoodIterator\<TImage,TBoundaryCondition\>::ConstIterator’: is not a legal base class

I build ITK5.3.0 with visual studio 2019. Can you please suggest, how to resolve this issue.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [March 15, 2022, 5:14pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/2 "2022-03-15T17:14:29Z")

</div>

You will need to provide the code fragment which triggers the error.

---

<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: [December 28, 2022, 6:03pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/3 "2022-12-28T18:03:06Z")

</div>

Seeing the same error with ITK 5.3.0 release:

```nohighlight
1>C:\itk\src-5.3.0\Modules\Core\Common\include\itkShapedNeighborhoodIterator.h(183,1): error C2516: 'itk::ShapedNeighborhoodIterator<TImage,TBoundaryCondition>::ConstIterator': is not a legal base class
1>C:\itk\src-5.3.0\Modules\Core\Common\include\itkShapedNeighborhoodIterator.h(171,3): message : see declaration of 'itk::ShapedNeighborhoodIterator<TImage,TBoundaryCondition>::ConstIterator'
1>C:\itk\src-5.3.0\Modules\Core\Common\include\itkShapedNeighborhoodIterator.h(209,1): message : see reference to class template instantiation 'itk::ShapedNeighborhoodIterator<TImage,TBoundaryCondition>::Iterator' being compiled
1>C:\itk\src-5.3.0\Modules\Core\Common\include\itkShapedNeighborhoodIterator.h(265,2): message : see reference to class template instantiation 'itk::ShapedNeighborhoodIterator<TImage,TBoundaryCondition>' being compiled

```

I’m using Visual Studio 2022 to compile, and I’m not using the `ShapedNeighborhoodIterator` directly.

I get the error in the compilation of several files in our larger project (which compiles perfectly fine with ITK 5.2.x); I have tried hard (but have failed so far) in extracting a minimal example where this error occurs; I suppose it might come from a conflict resulting from pulling in a bunch of different ITK header files in the wrong order?

I do not even understand what the error means exactly - [Microsoft Learn](https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-2/compiler-error-c2516?view=msvc-170) suggests this happens for example when the thing given as base class is not a class, or only forward-declared using typedef? I suppose in this case it would be some problem with template resolution?

Any hints on how I could narrow down where exactly the error is coming from? I have experimented with the “ShowIncludes” feature in Visual Studio, but that just shows me that for our large project, I get above error in between

```auto
1>Note: including file: C:\itk\src-5.3.0\Modules\Core\Common\include\itkConstShapedNeighborhoodIterator.hxx

```

and

```auto
1>Note: including file: C:\itk\src-5.3.0\Modules\Core\Common\include\itkShapedNeighborhoodIterator.hxx

```

while for the minimal example using the same filter pulling in the include (e.g. itkMorphologicalWatershedImageFilter, itkSignedMaurerDistanceMapImageFilter, itkBinaryFillholeImageFilter, …), I don’t get that error…

---

<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: [December 28, 2022, 7:14pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/4 "2022-12-28T19:14:15Z")

</div>

Might this issue be related:

> <https://github.com/InsightSoftwareConsortium/ITK/issues/3056>
>
> \### Description
> 
> itkAdaptiveHistogramEqualizationImageFilter.h is conflict wit…h itkBinaryFillholeImageFilter.h, I can't use it together. But if I changed ITK5.3.0 to ITK5.2.0, they work fine.
> I don't know if there are any other header files that have this issue.
> 
> \### Environment
> 
> win11, vs2022, itk5.3.0
> 
> \### Code
> 
> \`\`\`
> \#include \<itkAdaptiveHistogramEqualizationImageFilter.h\>
> \#include \<itkBinaryFillholeImageFilter.h\>
> 
> int main(int argc, char\* argv\[\])
> {
> }
> \`\`\`
> 
> \### MSVC compile message
> 
> \`\`\`
> 1\>------ Rebuild All started: Project: CppSampleCode, Configuration: Release x64 ------
> 1\>Reading Qt configuration (D:/Qt/6.2.2/msvc2019\_64/bin/qmake)
> 1\>main.cpp
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(186,1): error C2244: 'itk::LabelMap\<TLabelObject\>::GetNthLabelObject': unable to match function definition to an existing declaration
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(185): message : see declaration of 'itk::LabelMap\<TLabelObject\>::GetNthLabelObject'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(186,1): message : definition
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(186,1): message : 'TLabelObject \*itk::LabelMap\<TLabelObject\>::GetNthLabelObject(const itk::SizeValueType &)'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(186,1): message : existing declarations
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(186,1): message : 'const TLabelObject \*itk::LabelMap\<TLabelObject\>::GetNthLabelObject(const LabelMap\<TLabelObject\>::ImageBase\<TLabelObject::ImageDimension\>::SizeValueType &) const'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(186,1): message : 'TLabelObject \*itk::LabelMap\<TLabelObject\>::GetNthLabelObject(const LabelMap\<TLabelObject\>::ImageBase\<TLabelObject::ImageDimension\>::SizeValueType &)'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(205,1): error C2244: 'itk::LabelMap\<TLabelObject\>::GetNthLabelObject': unable to match function definition to an existing declaration
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(204): message : see declaration of 'itk::LabelMap\<TLabelObject\>::GetNthLabelObject'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(205,1): message : definition
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(205,1): message : 'const TLabelObject \*itk::LabelMap\<TLabelObject\>::GetNthLabelObject(const itk::SizeValueType &) const'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(205,1): message : existing declarations
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(205,1): message : 'const TLabelObject \*itk::LabelMap\<TLabelObject\>::GetNthLabelObject(const LabelMap\<TLabelObject\>::ImageBase\<TLabelObject::ImageDimension\>::SizeValueType &) const'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(205,1): message : 'TLabelObject \*itk::LabelMap\<TLabelObject\>::GetNthLabelObject(const LabelMap\<TLabelObject\>::ImageBase\<TLabelObject::ImageDimension\>::SizeValueType &)'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(501,1): error C2244: 'itk::LabelMap\<TLabelObject\>::GetNumberOfLabelObjects': unable to match function definition to an existing declaration
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(500): message : see declaration of 'itk::LabelMap\<TLabelObject\>::GetNumberOfLabelObjects'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(501,1): message : definition
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(501,1): message : 'itk::SizeValueType itk::LabelMap\<TLabelObject\>::GetNumberOfLabelObjects(void) const'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(501,1): message : existing declarations
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkLabelMap.hxx(501,1): message : 'LabelMap\<TLabelObject\>::ImageBase\<TLabelObject::ImageDimension\>::SizeValueType itk::LabelMap\<TLabelObject\>::GetNumberOfLabelObjects(void) const'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkShapedNeighborhoodIterator.h(183,1): error C2516: 'itk::ShapedNeighborhoodIterator\<TImage,TBoundaryCondition\>::ConstIterator': is not a legal base class
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkShapedNeighborhoodIterator.h(171): message : see declaration of 'itk::ShapedNeighborhoodIterator\<TImage,TBoundaryCondition\>::ConstIterator'
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkShapedNeighborhoodIterator.h(209): message : see reference to class template instantiation 'itk::ShapedNeighborhoodIterator\<TImage,TBoundaryCondition\>::Iterator' being compiled
> 1\>D:\\vcpkgs\\itk\\itk5.3.0\_win\_x64\\include\\ITK-5.3\\itkShapedNeighborhoodIterator.h(265): message : see reference to class template instantiation 'itk::ShapedNeighborhoodIterator\<TImage,TBoundaryCondition\>' being compiled
> 1\>Done building project "CppSampleCode.vcxproj" -- FAILED.
> \`\`\`

?

However, with the given code I cannot reproduce the issue.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [December 28, 2022, 7:46pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/5 "2022-12-28T19:46:34Z")

</div>

@Niels_Dekker have you encountered something similar?

---

<div class="post-metadata">

### Author: ![Ahmed\_Saleh\_Tolba](https://discourse.itk.org/user_avatar/discourse.itk.org/ahmed_saleh_tolba/32/3125_2.png) [@Ahmed\_Saleh\_Tolba](https://discourse.itk.org/u/Ahmed_Saleh_Tolba)
#### Post date: [December 31, 2022, 3:06pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/6 "2022-12-31T15:06:26Z")

</div>

@dzenanz I have the same issue @Niels_Dekker

---

<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, 7:47am UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/7 "2023-01-02T07:47:41Z")

</div>

@Ahmed_Saleh_Tolba Do you by any chance have a “minimal” example with which the issue can be reproduced?

---

<div class="post-metadata">

### Author: ![Ahmed\_Saleh\_Tolba](https://discourse.itk.org/user_avatar/discourse.itk.org/ahmed_saleh_tolba/32/3125_2.png) [@Ahmed\_Saleh\_Tolba](https://discourse.itk.org/u/Ahmed_Saleh_Tolba)
#### Post date: [January 2, 2023, 12:47pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/8 "2023-01-02T12:47:08Z")

</div>

@codeling

#include “itkConnectedComponentImageFilter.h”  
#include “itkRelabelComponentImageFilter.h”

void main(void)  
{

}

---

<div class="post-metadata">

### Author: ![Ahmed\_Saleh\_Tolba](https://discourse.itk.org/user_avatar/discourse.itk.org/ahmed_saleh_tolba/32/3125_2.png) [@Ahmed\_Saleh\_Tolba](https://discourse.itk.org/u/Ahmed_Saleh_Tolba)
#### Post date: [January 2, 2023, 12:50pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/9 "2023-01-02T12:50:41Z")

</div>

@codeling

 ![image](https://discourse.itk.org/uploads/default/original/2X/4/464a128d7528022795648659c7d189a419c1129d.png)

---

<div class="post-metadata">

### Author: ![Niels\_Dekker](https://discourse.itk.org/letter_avatar_proxy/v4/letter/n/9d8465/32.png) [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)
#### Post date: [January 2, 2023, 1:48pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/10 "2023-01-02T13:48:25Z")

</div>

Thanks Ahmed, that’s very helpful. Honestly I still don’t have a clue. It looks like a compiler bug to me. Does it only occur with Visual Studio 2022? Not with Visual Studio 2019?

Do I understand correctly that it already occurs with the following two include’s?

```auto
#include “itkConnectedComponentImageFilter.h”
#include “itkRelabelComponentImageFilter.h”

void main(void)
{
}

```

I still need to install VS2022 myself so until then I guess I cannot reproduce it now. Unless it may be minimized to a code snippet that would fit into [https://godbolt.org/](https://godbolt.org/) without external `#include`’s

---

<div class="post-metadata">

### Author: ![Ahmed\_Saleh\_Tolba](https://discourse.itk.org/user_avatar/discourse.itk.org/ahmed_saleh_tolba/32/3125_2.png) [@Ahmed\_Saleh\_Tolba](https://discourse.itk.org/u/Ahmed_Saleh_Tolba)
#### Post date: [January 2, 2023, 2:20pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/11 "2023-01-02T14:20:20Z")

</div>

@Niels_Dekker Yes it happens only while including those two header files.

---

<div class="post-metadata">

### Author: ![Niels\_Dekker](https://discourse.itk.org/letter_avatar_proxy/v4/letter/n/9d8465/32.png) [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)
#### Post date: [January 2, 2023, 2:22pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/12 "2023-01-02T14:22:20Z")

</div>

> [@Ahmed\_Saleh\_Tolba](#):
>
> Yes it happens only while including those two header files.

Thanks! How did you build ITK? Any specific CMake configuration flags?

---

<div class="post-metadata">

### Author: ![Ahmed\_Saleh\_Tolba](https://discourse.itk.org/user_avatar/discourse.itk.org/ahmed_saleh_tolba/32/3125_2.png) [@Ahmed\_Saleh\_Tolba](https://discourse.itk.org/u/Ahmed_Saleh_Tolba)
#### Post date: [January 2, 2023, 2:24pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/13 "2023-01-02T14:24:27Z")

</div>

@Niels_Dekker Not really, but what’s interesting is include those two headers files in your examples projects, no errors occur. Just in an Empty Project.

---

<div class="post-metadata">

### Author: ![Niels\_Dekker](https://discourse.itk.org/letter_avatar_proxy/v4/letter/n/9d8465/32.png) [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)
#### Post date: [January 2, 2023, 2:38pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/14 "2023-01-02T14:38:06Z")

</div>

Can you please show us the compiler options used to compile your Project1? You can do so by adjusting the Project Properties, _C/C++ ==\> General ==\> Suppress Startup Banner_ **No**! Then recompile and copy the Build output from the Output window.

By the way, does this error occur with a Release build as well?

---

<div class="post-metadata">

### Author: ![Ahmed\_Saleh\_Tolba](https://discourse.itk.org/user_avatar/discourse.itk.org/ahmed_saleh_tolba/32/3125_2.png) [@Ahmed\_Saleh\_Tolba](https://discourse.itk.org/u/Ahmed_Saleh_Tolba)
#### Post date: [January 2, 2023, 2:42pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/15 "2023-01-02T14:42:58Z")

</div>

cl /c /I"C:\work\ots\ITKN\ITK-CPU\include\ITK-5.3" /ZI /JMC /W3 /WX- /diagnostics:column /sdl /Od /D \_DEBUG /D \_CONSOLE /D \_UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar\_t /Zc:forScope /Zc:inline /std:c++17 /permissive- /Fo"x64\Debug\" /Fd"x64\Debug\vc143.pdb" /external:W3 /Gd /TP /FC /errorReport:prompt Source.cpp

Yes it does occur in release build  
@Niels_Dekker

---

<div class="post-metadata">

### Author: ![Niels\_Dekker](https://discourse.itk.org/letter_avatar_proxy/v4/letter/n/9d8465/32.png) [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)
#### Post date: [January 2, 2023, 2:54pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/16 "2023-01-02T14:54:55Z")

</div>

> [@Ahmed\_Saleh\_Tolba](#):
>
> what’s interesting is include those two headers files in your examples projects, no errors occur. Just in an Empty Project.

Which particular example projects do you mean? I guess those example projects are created by CMake, whereas your Project1 project file (.vcxproj) is generated directly by Visual Studio. Maybe that could explain something…

BTW, I see your compile options include the option `/std:c++17`. ITK still assumes C++14 (even though it _may_ compile with C++17, I’m not sure). Would the error go away when “downgrading” your Project1 to C++14? By Project Properties, _C/C++ ==\> Language ==\> C++ Language Standard:_ **ISO C++14 Standard**

---

<div class="post-metadata">

### Author: ![Niels\_Dekker](https://discourse.itk.org/letter_avatar_proxy/v4/letter/n/9d8465/32.png) [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)
#### Post date: [January 2, 2023, 3:22pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/17 "2023-01-02T15:22:07Z")

</div>

Update: Looks like I reproduced the error locally, using just Visual Studio 2019 with C++14!!!

Can you please check if this pull request would fix the error for you as well?

> <https://github.com/InsightSoftwareConsortium/ITK/pull/3844>
>
> Originally reported by Astha, March 14, 2022, and further discussed at "ITK buil…d Error in itk::ShapedNeighborhoodIterator", https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861

---

<div class="post-metadata">

### Author: ![Niels\_Dekker](https://discourse.itk.org/letter_avatar_proxy/v4/letter/n/9d8465/32.png) [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)
#### Post date: [January 2, 2023, 4:11pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/18 "2023-01-02T16:11:39Z")

</div>

Looks like the error appears when compiling in Visual C++ “Conformance mode”, `/permissive-` (mind the _minus_ sign). The following piece of code triggers the error with `/permissive-`, just using Godbolt’s Compiler Explorer at [Compiler Explorer](https://godbolt.org/z/o44snhqh3)

```auto
template <typename T>
class ConstShapedNeighborhoodIterator
{
public:
  struct ConstIterator { };
};

template <typename T>
class ShapedNeighborhoodIterator
  : public ConstShapedNeighborhoodIterator<T>
{
public:
  using typename ConstShapedNeighborhoodIterator<T>::ConstIterator;

  struct Iterator : public ConstIterator { };
};

```

---

<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!

---

<div class="post-metadata">

### Author: ![Niels\_Dekker](https://discourse.itk.org/letter_avatar_proxy/v4/letter/n/9d8465/32.png) [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)
#### Post date: [January 3, 2023, 11:45pm UTC](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861/20 "2023-01-03T23:45:57Z")

</div>

Please check the bug report I submitted to Microsoft on this compile error: [Class template gets undeserved error C2516: “is not a legal base class” from `/permissive-` (“Conformance mode”)](https://developercommunity.visualstudio.com/t/Class-template-gets-undeserved-error-C25/10243790) And please _upvote_ the bug report!

> **[Visual Studio Feedback](https://developercommunity.visualstudio.com/t/Class-template-gets-undeserved-error-C25/10243790)**
>
> Visual Studio Feedback

[Next page](https://discourse.itk.org/t/itk-build-error-in-itk-shapedneighborhooditerator/4861.md?page=2)
