error in sitkFlipImageFiler.h (120) and sitkGridImageSource.h (245) in Basic Filters

getting this error in both header files

Element ‘1’: conversion from ‘int’ to ‘bool’ requires a narrowing conversion

I would like to know if I should be using the ITK header files from within the SITK code, or from the ITK library itself?

I changed the code from std::vector m_WhichDimensions{ std::vector(3, true) }

to

std::vector m_WhichDimensions{ true, true, true };

Hello,

Thank you for posting the error you encountered. Could you please provide the following information:

  • What version of SimpleITK did you build?
  • What OS and compiler you are using?
  • What configuration options did you selected when building SimpleITK?
  • Are you using CMake to build your code with SimpleITK?

Thank you for the additional information to help address the issue.

I built the latest version 2.5.3

OS is WIndows10 x64, MSVC compiler

Used the Superbuild with cmake

I already posted the solution