hello,
i’m using the itkImageAlgorithm H file and i get the following error:
itkImageAlgorithm.h:193: error: C2143: syntax error: missing ‘,’ before ‘<’
this is the code:
/** Unary functor just for static_cast operator */
template<typename TInputType, typename TOutputType>
struct StaticCast
: public std::unary_function<TInputType,TOutputType>
{
TOutputType operator() (const TInputType i) { return static_cast(i); }
};
The std function called in ITK on the line causing an issue has been removed in C++17 (see here). This line has been removed in ITKv5, so to solve your problem you can either move to ITKv5 or patch ITKv4.13.2 for your project and simply remove this line of code.