Consolidate compiler generated dependencies of target itkImageConvert
[ 50%] Building CXX object CMakeFiles/itkImageConvert.dir/main.cxx.o
/home/rafael/src/itkImageConvert/main.cxx: In instantiation of ‘int DoIt(const Arguments&, inputT) [with inputT = int]’:
/home/rafael/src/itkImageConvert/main.cxx:108:18: required from here
/home/rafael/src/itkImageConvert/main.cxx:57:28: error: invalid initialization of reference of type ‘itk::Image<int, 3>&&’ from expression of type ‘itk::SmartPointer<itk::Image<int, 3> >’
57 | itk::WriteImage<ImageType>(inImage, arguments.outputFileName);
| ^~~~~~~
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:247:29: note: in passing argument 1 of ‘void itk::WriteImage(TImagePointer&&, const string&, bool) [with TImagePointer = itk::Image<int, 3>; std::string = std::__cxx11::basic_string<char>]’
247 | WriteImage(TImagePointer && image, const std::string & filename, bool compress = false)
| ~~~~~~~~~~~~~~~~~^~~~~
/home/rafael/src/itkImageConvert/main.cxx: In instantiation of ‘int DoIt(const Arguments&, inputT) [with inputT = unsigned int]’:
/home/rafael/src/itkImageConvert/main.cxx:112:18: required from here
/home/rafael/src/itkImageConvert/main.cxx:57:28: error: invalid initialization of reference of type ‘itk::Image<unsigned int, 3>&&’ from expression of type ‘itk::SmartPointer<itk::Image<unsigned int, 3> >’
57 | itk::WriteImage<ImageType>(inImage, arguments.outputFileName);
| ^~~~~~~
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:247:29: note: in passing argument 1 of ‘void itk::WriteImage(TImagePointer&&, const string&, bool) [with TImagePointer = itk::Image<unsigned int, 3>; std::string = std::__cxx11::basic_string<char>]’
247 | WriteImage(TImagePointer && image, const std::string & filename, bool compress = false)
| ~~~~~~~~~~~~~~~~~^~~~~
/home/rafael/src/itkImageConvert/main.cxx: In instantiation of ‘int DoIt(const Arguments&, inputT) [with inputT = float]’:
/home/rafael/src/itkImageConvert/main.cxx:116:18: required from here
/home/rafael/src/itkImageConvert/main.cxx:57:28: error: invalid initialization of reference of type ‘itk::Image<float, 3>&&’ from expression of type ‘itk::SmartPointer<itk::Image<float, 3> >’
57 | itk::WriteImage<ImageType>(inImage, arguments.outputFileName);
| ^~~~~~~
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:247:29: note: in passing argument 1 of ‘void itk::WriteImage(TImagePointer&&, const string&, bool) [with TImagePointer = itk::Image<float, 3>; std::string = std::__cxx11::basic_string<char>]’
247 | WriteImage(TImagePointer && image, const std::string & filename, bool compress = false)
| ~~~~~~~~~~~~~~~~~^~~~~
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h: In instantiation of ‘void itk::WriteImage(TImagePointer&&, const string&, bool) [with TImagePointer = itk::Image<int, 3>; std::string = std::__cxx11::basic_string<char>]’:
/home/rafael/src/itkImageConvert/main.cxx:57:27: required from ‘int DoIt(const Arguments&, inputT) [with inputT = int]’
/home/rafael/src/itkImageConvert/main.cxx:108:18: required from here
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:250:66: error: static assertion failed: WriteImage requires a raw pointer or SmartPointer.
250 | static_assert(std::is_pointer<NonReferenceImagePointer>::value ||
| ~~~~~~^~
251 | mpl::IsSmartPointer<NonReferenceImagePointer>::Value,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:250:66: note: ‘(((bool)std::integral_constant<bool, false>::value) || ((itk::mpl::FalseType::ValueType)itk::mpl::FalseType::Value))’ evaluates to false
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: error: no match for ‘operator*’ (operand type is ‘itk::Image<int, 3>’)
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkPoint.h:23,
from /home/rafael/src/itk/Modules/Core/Common/include/itkContinuousIndex.h:21,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageRegion.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:21,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::Vector<T, NVectorDimension> itk::operator*(const T&, const itk::Vector<T, NVectorDimension>&)’
297 | inline Vector<T, NVectorDimension> operator*(const T & scalar, const Vector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::CovariantVector<T, NVectorDimension> itk::operator*(const T&, const itk::CovariantVector<T, NVectorDimension>&)’
268 | inline CovariantVector<T, NVectorDimension> operator*(const T & scalar, const CovariantVector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: candidate: ‘template<class T, unsigned int NVectorDimension> T itk::operator*(const itk::Vector<T, NVectorDimension>&, const itk::CovariantVector<T, NVectorDimension>&)’
276 | inline T operator*(const Vector<T, NVectorDimension> & contravariant,
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: ‘itk::Image<int, 3>’ is not derived from ‘const itk::Vector<T, NVectorDimension>’
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkDefaultConvertPixelTraits.h:24,
from /home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileReader.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:3:
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: candidate: ‘template<class TExpr1, class TExpr2> typename itk::mpl::EnableIf<itk::Details::op::CanBeMultiplied<TExpr1, TExpr2>, itk::VariableLengthVectorExpression<TExpr1, TExpr2, itk::Details::op::Mult> >::Type itk::operator*(const TExpr1&, const TExpr2&)’
1301 | operator*(TExpr1 const & lhs, TExpr2 const & rhs)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: error: no match for ‘operator*’ (operand type is ‘itk::Image<int, 3>’)
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkPoint.h:23,
from /home/rafael/src/itk/Modules/Core/Common/include/itkContinuousIndex.h:21,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageRegion.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:21,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::Vector<T, NVectorDimension> itk::operator*(const T&, const itk::Vector<T, NVectorDimension>&)’
297 | inline Vector<T, NVectorDimension> operator*(const T & scalar, const Vector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::CovariantVector<T, NVectorDimension> itk::operator*(const T&, const itk::CovariantVector<T, NVectorDimension>&)’
268 | inline CovariantVector<T, NVectorDimension> operator*(const T & scalar, const CovariantVector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: candidate: ‘template<class T, unsigned int NVectorDimension> T itk::operator*(const itk::Vector<T, NVectorDimension>&, const itk::CovariantVector<T, NVectorDimension>&)’
276 | inline T operator*(const Vector<T, NVectorDimension> & contravariant,
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: ‘itk::Image<int, 3>’ is not derived from ‘const itk::Vector<T, NVectorDimension>’
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkDefaultConvertPixelTraits.h:24,
from /home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileReader.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:3:
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: candidate: ‘template<class TExpr1, class TExpr2> typename itk::mpl::EnableIf<itk::Details::op::CanBeMultiplied<TExpr1, TExpr2>, itk::VariableLengthVectorExpression<TExpr1, TExpr2, itk::Details::op::Mult> >::Type itk::operator*(const TExpr1&, const TExpr2&)’
1301 | operator*(TExpr1 const & lhs, TExpr2 const & rhs)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h: In instantiation of ‘void itk::WriteImage(TImagePointer&&, const string&, bool) [with TImagePointer = itk::Image<unsigned int, 3>; std::string = std::__cxx11::basic_string<char>]’:
/home/rafael/src/itkImageConvert/main.cxx:57:27: required from ‘int DoIt(const Arguments&, inputT) [with inputT = unsigned int]’
/home/rafael/src/itkImageConvert/main.cxx:112:18: required from here
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:250:66: error: static assertion failed: WriteImage requires a raw pointer or SmartPointer.
250 | static_assert(std::is_pointer<NonReferenceImagePointer>::value ||
| ~~~~~~^~
251 | mpl::IsSmartPointer<NonReferenceImagePointer>::Value,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:250:66: note: ‘(((bool)std::integral_constant<bool, false>::value) || ((itk::mpl::FalseType::ValueType)itk::mpl::FalseType::Value))’ evaluates to false
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: error: no match for ‘operator*’ (operand type is ‘itk::Image<unsigned int, 3>’)
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkPoint.h:23,
from /home/rafael/src/itk/Modules/Core/Common/include/itkContinuousIndex.h:21,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageRegion.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:21,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::Vector<T, NVectorDimension> itk::operator*(const T&, const itk::Vector<T, NVectorDimension>&)’
297 | inline Vector<T, NVectorDimension> operator*(const T & scalar, const Vector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::CovariantVector<T, NVectorDimension> itk::operator*(const T&, const itk::CovariantVector<T, NVectorDimension>&)’
268 | inline CovariantVector<T, NVectorDimension> operator*(const T & scalar, const CovariantVector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: candidate: ‘template<class T, unsigned int NVectorDimension> T itk::operator*(const itk::Vector<T, NVectorDimension>&, const itk::CovariantVector<T, NVectorDimension>&)’
276 | inline T operator*(const Vector<T, NVectorDimension> & contravariant,
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: ‘itk::Image<unsigned int, 3>’ is not derived from ‘const itk::Vector<T, NVectorDimension>’
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkDefaultConvertPixelTraits.h:24,
from /home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileReader.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:3:
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: candidate: ‘template<class TExpr1, class TExpr2> typename itk::mpl::EnableIf<itk::Details::op::CanBeMultiplied<TExpr1, TExpr2>, itk::VariableLengthVectorExpression<TExpr1, TExpr2, itk::Details::op::Mult> >::Type itk::operator*(const TExpr1&, const TExpr2&)’
1301 | operator*(TExpr1 const & lhs, TExpr2 const & rhs)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: error: no match for ‘operator*’ (operand type is ‘itk::Image<unsigned int, 3>’)
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkPoint.h:23,
from /home/rafael/src/itk/Modules/Core/Common/include/itkContinuousIndex.h:21,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageRegion.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:21,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::Vector<T, NVectorDimension> itk::operator*(const T&, const itk::Vector<T, NVectorDimension>&)’
297 | inline Vector<T, NVectorDimension> operator*(const T & scalar, const Vector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::CovariantVector<T, NVectorDimension> itk::operator*(const T&, const itk::CovariantVector<T, NVectorDimension>&)’
268 | inline CovariantVector<T, NVectorDimension> operator*(const T & scalar, const CovariantVector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: candidate: ‘template<class T, unsigned int NVectorDimension> T itk::operator*(const itk::Vector<T, NVectorDimension>&, const itk::CovariantVector<T, NVectorDimension>&)’
276 | inline T operator*(const Vector<T, NVectorDimension> & contravariant,
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: ‘itk::Image<unsigned int, 3>’ is not derived from ‘const itk::Vector<T, NVectorDimension>’
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkDefaultConvertPixelTraits.h:24,
from /home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileReader.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:3:
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: candidate: ‘template<class TExpr1, class TExpr2> typename itk::mpl::EnableIf<itk::Details::op::CanBeMultiplied<TExpr1, TExpr2>, itk::VariableLengthVectorExpression<TExpr1, TExpr2, itk::Details::op::Mult> >::Type itk::operator*(const TExpr1&, const TExpr2&)’
1301 | operator*(TExpr1 const & lhs, TExpr2 const & rhs)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h: In instantiation of ‘void itk::WriteImage(TImagePointer&&, const string&, bool) [with TImagePointer = itk::Image<float, 3>; std::string = std::__cxx11::basic_string<char>]’:
/home/rafael/src/itkImageConvert/main.cxx:57:27: required from ‘int DoIt(const Arguments&, inputT) [with inputT = float]’
/home/rafael/src/itkImageConvert/main.cxx:116:18: required from here
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:250:66: error: static assertion failed: WriteImage requires a raw pointer or SmartPointer.
250 | static_assert(std::is_pointer<NonReferenceImagePointer>::value ||
| ~~~~~~^~
251 | mpl::IsSmartPointer<NonReferenceImagePointer>::Value,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:250:66: note: ‘(((bool)std::integral_constant<bool, false>::value) || ((itk::mpl::FalseType::ValueType)itk::mpl::FalseType::Value))’ evaluates to false
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: error: no match for ‘operator*’ (operand type is ‘itk::Image<float, 3>’)
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkPoint.h:23,
from /home/rafael/src/itk/Modules/Core/Common/include/itkContinuousIndex.h:21,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageRegion.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:21,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::Vector<T, NVectorDimension> itk::operator*(const T&, const itk::Vector<T, NVectorDimension>&)’
297 | inline Vector<T, NVectorDimension> operator*(const T & scalar, const Vector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::CovariantVector<T, NVectorDimension> itk::operator*(const T&, const itk::CovariantVector<T, NVectorDimension>&)’
268 | inline CovariantVector<T, NVectorDimension> operator*(const T & scalar, const CovariantVector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: candidate: ‘template<class T, unsigned int NVectorDimension> T itk::operator*(const itk::Vector<T, NVectorDimension>&, const itk::CovariantVector<T, NVectorDimension>&)’
276 | inline T operator*(const Vector<T, NVectorDimension> & contravariant,
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: ‘itk::Image<float, 3>’ is not derived from ‘const itk::Vector<T, NVectorDimension>’
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkDefaultConvertPixelTraits.h:24,
from /home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileReader.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:3:
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: candidate: ‘template<class TExpr1, class TExpr2> typename itk::mpl::EnableIf<itk::Details::op::CanBeMultiplied<TExpr1, TExpr2>, itk::VariableLengthVectorExpression<TExpr1, TExpr2, itk::Details::op::Mult> >::Type itk::operator*(const TExpr1&, const TExpr2&)’
1301 | operator*(TExpr1 const & lhs, TExpr2 const & rhs)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: error: no match for ‘operator*’ (operand type is ‘itk::Image<float, 3>’)
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkPoint.h:23,
from /home/rafael/src/itk/Modules/Core/Common/include/itkContinuousIndex.h:21,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageRegion.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:21,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::Vector<T, NVectorDimension> itk::operator*(const T&, const itk::Vector<T, NVectorDimension>&)’
297 | inline Vector<T, NVectorDimension> operator*(const T & scalar, const Vector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVector.h:297:36: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: candidate: ‘template<class T, unsigned int NVectorDimension> itk::CovariantVector<T, NVectorDimension> itk::operator*(const T&, const itk::CovariantVector<T, NVectorDimension>&)’
268 | inline CovariantVector<T, NVectorDimension> operator*(const T & scalar, const CovariantVector<T, NVectorDimension> & v)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:268:45: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkMatrix.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImageBase.h:34,
from /home/rafael/src/itk/Modules/Core/Common/include/itkNeighborhoodAccessorFunctor.h:22,
from /home/rafael/src/itk/Modules/Core/Common/include/itkImage.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:2:
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: candidate: ‘template<class T, unsigned int NVectorDimension> T itk::operator*(const itk::Vector<T, NVectorDimension>&, const itk::CovariantVector<T, NVectorDimension>&)’
276 | inline T operator*(const Vector<T, NVectorDimension> & contravariant,
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkCovariantVector.h:276:10: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: ‘itk::Image<float, 3>’ is not derived from ‘const itk::Vector<T, NVectorDimension>’
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
In file included from /home/rafael/src/itk/Modules/Core/Common/include/itkDefaultConvertPixelTraits.h:24,
from /home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileReader.h:28,
from /home/rafael/src/itkImageConvert/main.cxx:3:
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: candidate: ‘template<class TExpr1, class TExpr2> typename itk::mpl::EnableIf<itk::Details::op::CanBeMultiplied<TExpr1, TExpr2>, itk::VariableLengthVectorExpression<TExpr1, TExpr2, itk::Details::op::Mult> >::Type itk::operator*(const TExpr1&, const TExpr2&)’
1301 | operator*(TExpr1 const & lhs, TExpr2 const & rhs)
| ^~~~~~~~
/home/rafael/src/itk/Modules/Core/Common/include/itkVariableLengthVector.h:1301:1: note: template argument deduction/substitution failed:
In file included from /home/rafael/src/itkImageConvert/main.cxx:4:
/home/rafael/src/itk/Modules/IO/ImageBase/include/itkImageFileWriter.h:254:88: note: candidate expects 2 arguments, 1 provided
254 | using ImageType = typename std::remove_const<typename std::remove_reference<decltype(*image)>::type>::type;
| ^~~~~~
gmake[2]: *** [CMakeFiles/itkImageConvert.dir/build.make:76: CMakeFiles/itkImageConvert.dir/main.cxx.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/itkImageConvert.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
Compilation exited abnormally with code 2 at Tue Jun 7 14:23:21