Skip to content

Commit

Permalink
COMP: Fix the last compile error on MSVC
Browse files Browse the repository at this point in the history
Overloading operator + (const T & a, const T & b) is overly broad.

The error message was:

IRFFTCommon.cxx
C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\functors\BinaryFunctors.h(189,73): error C2676: binary '/': 'std::list<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>,std::allocator<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>>>' does not define this operator or a conversion to a type acceptable to the predefined operator
(compiling source file '../../../../ITKNornir/src/IRFFTCommon.cxx')
    C:\Dev\ITK-git\Modules\ThirdParty\VNL\src\vxl\core\vnl\vnl_matrix_fixed.h(858,25):
    could be 'vnl_matrix_fixed<T,M,N> operator /(const vnl_matrix_fixed<T,M,N> &,T)'
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\functors\BinaryFunctors.h(189,42):
        'vnl_matrix_fixed<T,M,N> operator /(const vnl_matrix_fixed<T,M,N> &,T)': could not deduce template argument for 'const vnl_matrix_fixed<T,M,N> &' from 'std::list<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>,std::allocator<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>>>'
    C:\Dev\ITK-git\Modules\ThirdParty\VNL\src\vxl\core\vnl\vnl_vector_fixed.h(608,30):
    or       'vnl_vector_fixed<T,n> operator /(const vnl_vector_fixed<T,n> &,T)'
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\functors\BinaryFunctors.h(189,42):
        'vnl_vector_fixed<T,n> operator /(const vnl_vector_fixed<T,n> &,T)': could not deduce template argument for 'const vnl_vector_fixed<T,n> &' from 'std::list<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>,std::allocator<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>>>'
    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\complex(1493,38):
    or       'std::complex<_Other> std::operator /(const std::complex<_Other> &,const std::complex<_Other> &) noexcept(<expr>)'
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\functors\BinaryFunctors.h(189,42):
        'std::complex<_Other> std::operator /(const std::complex<_Other> &,const std::complex<_Other> &) noexcept(<expr>)': could not deduce template argument for 'const std::complex<_Other> &' from 'std::list<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>,std::allocator<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>>>'
    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\complex(1501,38):
    or       'std::complex<_Other> std::operator /(const std::complex<_Other> &,const _Ty &) noexcept(<expr>)'
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\functors\BinaryFunctors.h(189,42):
        'std::complex<_Other> std::operator /(const std::complex<_Other> &,const _Ty &) noexcept(<expr>)': could not deduce template argument for 'const std::complex<_Other> &' from 'std::list<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>,std::allocator<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>>>'
    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\complex(1509,38):
    or       'std::complex<_Other> std::operator /(const _Ty &,const std::complex<_Other> &) noexcept(<expr>)'
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\functors\BinaryFunctors.h(189,42):
        'std::complex<_Other> std::operator /(const _Ty &,const std::complex<_Other> &) noexcept(<expr>)': could not deduce template argument for 'const std::complex<_Other> &' from 'int'
    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\valarray(648,26):
    or       'std::valarray<_Ty> std::operator /(const std::valarray<_Ty> &,const valarray<_Ty>::value_type &)'
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\functors\BinaryFunctors.h(189,42):
        'std::valarray<_Ty> std::operator /(const std::valarray<_Ty> &,const valarray<_Ty>::value_type &)': could not deduce template argument for 'const std::valarray<_Ty> &' from 'std::list<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>,std::allocator<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>>>'
    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\valarray(658,26):
    or       'std::valarray<_Ty> std::operator /(const valarray<_Ty>::value_type &,const std::valarray<_Ty> &)'
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\functors\BinaryFunctors.h(189,42):
        'std::valarray<_Ty> std::operator /(const valarray<_Ty>::value_type &,const std::valarray<_Ty> &)': could not deduce template argument for 'const std::valarray<_Ty> &' from 'int'
    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\valarray(881,26):
    or       'std::valarray<_Ty> std::operator /(const std::valarray<_Ty> &,const std::valarray<_Ty> &)'
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\functors\BinaryFunctors.h(189,42):
        'std::valarray<_Ty> std::operator /(const std::valarray<_Ty> &,const std::valarray<_Ty> &)': could not deduce template argument for 'const std::valarray<_Ty> &' from 'std::list<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>,std::allocator<Eigen::GenericNumTraits<double>::<unnamed-enum-IsInteger>>>'
    C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\functors\BinaryFunctors.h(189,73):
    the template instantiation context (the oldest one first) is
        M:\Dev\Nornir\ITKNornir\include\itkIRCommon.h(137,19):
        see reference to class template instantiation 'itk::ImageMaskSpatialObject<2,unsigned char>' being compiled
        C:\Dev\ITK-git\Modules\Core\SpatialObjects\include\itkImageMaskSpatialObject.h(47,59):
        see reference to class template instantiation 'itk::ImageSpatialObject<2,TPixel>' being compiled
        with
        [
            TPixel=unsigned char
        ]
        C:\Dev\ITK-git\Modules\Core\SpatialObjects\include\itkImageSpatialObject.h(40,55):
        see reference to class template instantiation 'itk::SpatialObject<2>' being compiled
        C:\Dev\ITK-git\Modules\Core\SpatialObjects\include\itkSpatialObject.h(101,52):
        see reference to class template instantiation 'itk::AffineTransform<itk::SpatialObject<2>::ScalarType,2>' being compiled
        C:\Dev\ITK-git\Modules\Core\Transform\include\itkAffineTransform.hxx(263,1):
        while compiling class template member function 'itk::SmartPointer<itk::Transform<TParametersValueType,2,2>> itk::AffineTransform<TParametersValueType,2>::GetInverseTransform(void) const'
        with
        [
            TParametersValueType=itk::SpatialObject<2>::ScalarType
        ]
        C:\Dev\ITK-git\Modules\Core\Transform\include\itkTransform.hxx(301,1):
        while compiling class template member function 'itk::DiffusionTensor3D<TParametersValueType> itk::Transform<TParametersValueType,2,2>::PreservationOfPrincipalDirectionDiffusionTensor3DReorientation(const itk::DiffusionTensor3D<TParametersValueType> &,const vnl_matrix_fixed<TParametersValueType,2,2> &) const'
        with
        [
            TParametersValueType=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\Core\Transform\include\itkMatrixOffsetTransformBase.hxx(268,11):
            see the first reference to 'itk::Transform<TParametersValueType,2,2>::PreservationOfPrincipalDirectionDiffusionTensor3DReorientation' in 'itk::MatrixOffsetTransformBase<TParametersValueType,2,2>::TransformDiffusionTensor3D'
        with
        [
            TParametersValueType=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\Core\Transform\include\itkMatrixOffsetTransformBase.hxx(290,45):
            see the first reference to 'itk::MatrixOffsetTransformBase<TParametersValueType,2,2>::TransformDiffusionTensor3D' in 'itk::MatrixOffsetTransformBase<TParametersValueType,2,2>::TransformDiffusionTensor3D'
        with
        [
            TParametersValueType=itk::SpatialObject<2>::ScalarType
        ]
        C:\Dev\ITK-git\Modules\Core\Common\include\itkSymmetricSecondRankTensor.hxx(282,1):
        while compiling class template member function 'void itk::SymmetricSecondRankTensor<TComponent,3>::ComputeEigenAnalysis(itk::FixedArray<TComponent,3> &,itk::Matrix<double,3,3> &) const'
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType
        ]
        C:\Dev\ITK-git\Modules\Core\Common\include\itkSymmetricSecondRankTensor.hxx(283,30):
        see reference to class template instantiation 'itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>' being compiled
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType
        ]
        C:\Dev\ITK-git\Modules\Core\Common\include\itkSymmetricEigenAnalysis.h(811,3):
        while compiling class template member function 'unsigned int itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectors(const TMatrix &,TVector &,TEigenMatrix &) const'
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType,
            TMatrix=itk::Matrix<double,3,3>,
            TVector=itk::FixedArray<itk::SpatialObject<2>::ScalarType,3>,
            TEigenMatrix=itk::Matrix<double,3,3>
        ]
            C:\Dev\ITK-git\Modules\Core\Common\include\itkSymmetricSecondRankTensor.hxx(295,52):
            see the first reference to 'itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectors' in 'itk::SymmetricSecondRankTensor<TComponent,3>::ComputeEigenAnalysis'
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\Core\Transform\include\itkTransform.hxx(323,35):
            see the first reference to 'itk::SymmetricSecondRankTensor<TComponent,3>::ComputeEigenAnalysis' in 'itk::Transform<TParametersValueType,2,2>::PreservationOfPrincipalDirectionDiffusionTensor3DReorientation'
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType
        ]
        and
        [
            TParametersValueType=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\Core\Transform\include\itkMatrixOffsetTransformBase.hxx(268,11):
            see the first reference to 'itk::Transform<TParametersValueType,2,2>::PreservationOfPrincipalDirectionDiffusionTensor3DReorientation' in 'itk::MatrixOffsetTransformBase<TParametersValueType,2,2>::TransformDiffusionTensor3D'
        with
        [
            TParametersValueType=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\Core\Transform\include\itkMatrixOffsetTransformBase.hxx(290,45):
            see the first reference to 'itk::MatrixOffsetTransformBase<TParametersValueType,2,2>::TransformDiffusionTensor3D' in 'itk::MatrixOffsetTransformBase<TParametersValueType,2,2>::TransformDiffusionTensor3D'
        with
        [
            TParametersValueType=itk::SpatialObject<2>::ScalarType
        ]
        C:\Dev\ITK-git\Modules\Core\Common\include\itkSymmetricEigenAnalysis.h(813,12):
        see reference to function template instantiation 'unsigned int itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl<TMatrix>(const QMatrix &,TVector &,TEigenMatrix &,long) const' being compiled
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType,
            TMatrix=itk::Matrix<double,3,3>,
            QMatrix=itk::Matrix<double,3,3>,
            TVector=itk::FixedArray<itk::SpatialObject<2>::ScalarType,3>,
            TEigenMatrix=itk::Matrix<double,3,3>
        ]
        C:\Dev\ITK-git\Modules\Core\Common\include\itkSymmetricEigenAnalysis.h(974,27):
        see reference to function template instantiation 'Eigen::SelfAdjointEigenSolver<itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl::EigenLibMatrixType>::SelfAdjointEigenSolver<Derived>(const Eigen::EigenBase<Derived> &,int)' being compiled
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType,
            Derived=Eigen::Matrix<itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<itk::SpatialObject<2>::ScalarType,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl::ValueType,3,3,1,3,3>
        ]
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Eigenvalues\SelfAdjointEigenSolver.h(188,7):
        see reference to function template instantiation 'Eigen::SelfAdjointEigenSolver<itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl::EigenLibMatrixType> &Eigen::SelfAdjointEigenSolver<itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl::EigenLibMatrixType>::compute<Derived>(const Eigen::EigenBase<Derived> &,int)' being compiled
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType,
            Derived=Eigen::Matrix<itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<itk::SpatialObject<2>::ScalarType,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl::ValueType,3,3,1,3,3>
        ]
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Eigenvalues\SelfAdjointEigenSolver.h(455,26):
        see reference to class template instantiation 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>,const Derived>' being compiled
        with
        [
            Derived=Eigen::Matrix<double,3,3,0,3,3>
        ]
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\CwiseUnaryOp.h(58,29):
        see reference to class template instantiation 'Eigen::CwiseUnaryOpImpl<UnaryOp,XprType,Eigen::internal::traits<Derived>::StorageKind>' being compiled
        with
        [
            UnaryOp=Eigen::internal::scalar_abs_op<double>,
            XprType=Eigen::Matrix<double,3,3,0,3,3>,
            Derived=Eigen::Matrix<double,3,3,0,3,3>
        ]
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\CwiseUnaryOp.h(98,73):
        see reference to class template instantiation 'Eigen::MatrixBase<Derived>' being compiled
        with
        [
            Derived=Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>,const Eigen::Matrix<double,3,3,0,3,3>>
        ]
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\MatrixBase.h(52,12):
        see reference to class template instantiation 'Eigen::DenseBase<Derived>' being compiled
        with
        [
            Derived=Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>,const Eigen::Matrix<double,3,3,0,3,3>>
        ]
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\DenseBase.h(464,73):
        while compiling class template member function 'double Eigen::DenseBase<Derived>::maxCoeff(void) const'
        with
        [
            Derived=Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>,const Eigen::Matrix<double,3,3,0,3,3>>
        ]
            C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Eigenvalues\SelfAdjointEigenSolver.h(455,20):
            see the first reference to 'Eigen::DenseBase<Derived>::maxCoeff' in 'Eigen::SelfAdjointEigenSolver<itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl::EigenLibMatrixType>::compute'
        with
        [
            Derived=Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>,const Eigen::Matrix<double,3,3,0,3,3>>
        ]
        and
        [
            TComponent=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Eigenvalues\SelfAdjointEigenSolver.h(188,14):
            see the first reference to 'Eigen::SelfAdjointEigenSolver<itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl::EigenLibMatrixType>::compute' in 'Eigen::SelfAdjointEigenSolver<itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl::EigenLibMatrixType>::SelfAdjointEigenSolver'
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\Core\Common\include\itkSymmetricEigenAnalysis.h(974,27):
            see the first reference to 'Eigen::SelfAdjointEigenSolver<itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl::EigenLibMatrixType>::SelfAdjointEigenSolver' in 'itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl'
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\Core\Common\include\itkSymmetricEigenAnalysis.h(813,5):
            see the first reference to 'itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectorsWithEigenLibraryImpl' in 'itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectors'
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\Core\Common\include\itkSymmetricSecondRankTensor.hxx(295,52):
            see the first reference to 'itk::SymmetricEigenAnalysisFixedDimension<3,itk::Matrix<double,3,3>,itk::FixedArray<TComponent,3>,itk::Matrix<double,3,3>>::ComputeEigenValuesAndVectors' in 'itk::SymmetricSecondRankTensor<TComponent,3>::ComputeEigenAnalysis'
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\Core\Transform\include\itkTransform.hxx(323,35):
            see the first reference to 'itk::SymmetricSecondRankTensor<TComponent,3>::ComputeEigenAnalysis' in 'itk::Transform<TParametersValueType,2,2>::PreservationOfPrincipalDirectionDiffusionTensor3DReorientation'
        with
        [
            TComponent=itk::SpatialObject<2>::ScalarType
        ]
        and
        [
            TParametersValueType=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\Core\Transform\include\itkMatrixOffsetTransformBase.hxx(268,11):
            see the first reference to 'itk::Transform<TParametersValueType,2,2>::PreservationOfPrincipalDirectionDiffusionTensor3DReorientation' in 'itk::MatrixOffsetTransformBase<TParametersValueType,2,2>::TransformDiffusionTensor3D'
        with
        [
            TParametersValueType=itk::SpatialObject<2>::ScalarType
        ]
            C:\Dev\ITK-git\Modules\Core\Transform\include\itkMatrixOffsetTransformBase.hxx(290,45):
            see the first reference to 'itk::MatrixOffsetTransformBase<TParametersValueType,2,2>::TransformDiffusionTensor3D' in 'itk::MatrixOffsetTransformBase<TParametersValueType,2,2>::TransformDiffusionTensor3D'
        with
        [
            TParametersValueType=itk::SpatialObject<2>::ScalarType
        ]
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\DenseBase.h(465,14):
        see reference to function template instantiation 'double Eigen::DenseBase<Derived>::maxCoeff<Eigen::PropagateFast>(void) const' being compiled
        with
        [
            Derived=Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>,const Eigen::Matrix<double,3,3,0,3,3>>
        ]
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\Redux.h(536,20):
        see reference to function template instantiation 'double Eigen::DenseBase<Derived>::redux<Eigen::internal::scalar_max_op<double,double,0>>(const Func &) const' being compiled
        with
        [
            Derived=Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>,const Eigen::Matrix<double,3,3,0,3,3>>,
            Func=Eigen::internal::scalar_max_op<double,double,0>
        ]
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\Redux.h(250,57):
        see reference to class template instantiation 'Eigen::internal::redux_traits<Func,Evaluator>' being compiled
        with
        [
            Func=Eigen::internal::scalar_max_op<double,double,0>,
            Evaluator=Eigen::DenseBase<Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>,const Eigen::Matrix<double,3,3,0,3,3>>>::redux::ThisEvaluator
        ]
        C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\Redux.h(50,45):
        see reference to class template instantiation 'Eigen::internal::functor_traits<Func>' being compiled
        with
        [
            Func=Eigen::internal::scalar_max_op<double,double,0>
        ]
C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\functors\BinaryFunctors.h(189,5): error C2056: illegal expression
(compiling source file '../../../../ITKNornir/src/IRFFTCommon.cxx')
C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\Redux.h(506,20): error C2976: 'Eigen::internal::redux_impl': too few template arguments
(compiling source file '../../../../ITKNornir/src/IRFFTCommon.cxx')
    C:\Dev\ITK-git\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src\Core\Redux.h(253,8):
    see declaration of 'Eigen::internal::redux_impl'
  • Loading branch information
dzenanz committed Oct 14, 2024
1 parent 54d62fb commit c32766d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions include/itkIRUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -477,21 +477,6 @@ operator << (stream_t & so, const std::list<data_t> & c)
}


//----------------------------------------------------------------
// operator +
//
// Construct an on-the-fly linked list containing two elements:
//
template <typename T>
inline std::list<T>
operator + (const T & a, const T & b)
{
std::list<T> ab;
ab.push_back(a);
ab.push_back(b);
return ab;
}

//----------------------------------------------------------------
// operator +
//
Expand Down

0 comments on commit c32766d

Please sign in to comment.