You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1/2] Building CXX object converters/CMakeFiles/itk2vol.dir/itk2vol.cpp.o
FAILED: converters/CMakeFiles/itk2vol.dir/itk2vol.cpp.o
In file included from DGtal/src/src/DGtal/base/CPredicate.h:45,
from DGtal/src/src/DGtal/kernel/BasicPointPredicates.h:50,
from DGtal/src/src/DGtal/kernel/domains/HyperRectDomain.h:49,
from DGtal/src/src/DGtal/helpers/StdDefs.h:47,
from DGtal/DGtalTools-src/converters/itk2vol.cpp:33:
DGtal/src/src/DGtal/base/CUnaryFunctor.h: In instantiation of ‘DGtal::concepts::CUnaryFunctor<X, A, R>::~CUnaryFunctor() [with X = DGtal::functors::Rescaling<double, unsignedchar>; A = double; R = double]’:
/usr/include/boost/concept/detail/general.hpp:39:47: required from ‘staticvoid boost::concepts::requirement<boost::concepts::failed************ Model::************>::failed() [with Model = DGtal::concepts::CUnaryFunctor<DGtal::functors::Rescaling<double, unsignedchar>, double, double>]’
DGtal/src/src/DGtal/io/writers/ITKWriter.h:71:5: required from ‘structDGtal::ITKWriter<DGtal::ImageContainerBySTLVector<DGtal::HyperRectDomain<DGtal::SpaceND<3, int> >, double>, DGtal::functors::Rescaling<double, unsignedchar> >’
DGtal/src/src/DGtal/io/writers/GenericWriter.ih:206:62: required from ‘staticbool DGtal::GenericWriter<TContainer, 3, unsignedchar, TFunctor>::exportFile(const string&, const TContainer&, const string&, const TFunctor&) [with TContainer = DGtal::ImageContainerBySTLVector<DGtal::HyperRectDomain<DGtal::SpaceND<3, int> >, double>; TFunctor = DGtal::functors::Rescaling<double, unsignedchar>; std::string = std::__cxx11::basic_string<char>]’
DGtal/DGtalTools-src/converters/itk2vol.cpp:143:69: required from here
DGtal/src/src/DGtal/base/CUnaryFunctor.h:98:29: error: no matching function for call to ‘sameType(double&, unsignedchar)’
98 | ConceptUtils::sameType( r, x.operator() ( a ) );
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from DGtal/src/src/DGtal/base/Common.h:120,
from DGtal/DGtalTools-src/converters/itk2vol.cpp:32:
DGtal/src/src/DGtal/base/ConceptUtils.h:117:8: note: candidate: ‘template<classT> voidDGtal::concepts::ConceptUtils::sameType(const T&, const T&)’
117 | void sameType( const T & /* t1 */, const T & /* t2 */ ) {}
| ^~~~~~~~
DGtal/src/src/DGtal/base/ConceptUtils.h:117:8: note: template argument deduction/substitution failed:
In file included from DGtal/src/src/DGtal/base/CPredicate.h:45,
from DGtal/src/src/DGtal/kernel/BasicPointPredicates.h:50,
from DGtal/src/src/DGtal/kernel/domains/HyperRectDomain.h:49,
from DGtal/src/src/DGtal/helpers/StdDefs.h:47,
from DGtal/DGtalTools-src/converters/itk2vol.cpp:33:
DGtal/src/src/DGtal/base/CUnaryFunctor.h:98:29: note: deduced conflicting types for parameter ‘const T’ (‘double’ and ‘unsignedchar’)
98 | ConceptUtils::sameType( r, x.operator() ( a ) );
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
DGtal/src/src/DGtal/base/CUnaryFunctor.h: In instantiation of ‘DGtal::concepts::CUnaryFunctor<X, A, R>::~CUnaryFunctor() [with X = DGtal::functors::Rescaling<int, unsignedchar>; A = int; R = int]’:
/usr/include/boost/concept/detail/general.hpp:39:47: required from ‘staticvoid boost::concepts::requirement<boost::concepts::failed************ Model::************>::failed() [with Model = DGtal::concepts::CUnaryFunctor<DGtal::functors::Rescaling<int, unsignedchar>, int, int>]’
DGtal/src/src/DGtal/io/writers/ITKWriter.h:71:5: required from ‘structDGtal::ITKWriter<DGtal::ImageContainerBySTLVector<DGtal::HyperRectDomain<DGtal::SpaceND<3, int> >, int>, DGtal::functors::Rescaling<int, unsignedchar> >’
DGtal/src/src/DGtal/io/writers/GenericWriter.ih:206:62: required from ‘staticbool DGtal::GenericWriter<TContainer, 3, unsignedchar, TFunctor>::exportFile(const string&, const TContainer&, const string&, const TFunctor&) [with TContainer = DGtal::ImageContainerBySTLVector<DGtal::HyperRectDomain<DGtal::SpaceND<3, int> >, int>; TFunctor = DGtal::functors::Rescaling<int, unsignedchar>; std::string = std::__cxx11::basic_string<char>]’
DGtal/DGtalTools-src/converters/itk2vol.cpp:160:69: required from here
DGtal/src/src/DGtal/base/CUnaryFunctor.h:98:29: error: no matching function for call to ‘sameType(int&, unsignedchar)’
In file included from DGtal/src/src/DGtal/base/Common.h:120,
from DGtal/DGtalTools-src/converters/itk2vol.cpp:32:
DGtal/src/src/DGtal/base/ConceptUtils.h:117:8: note: candidate: ‘template<classT> voidDGtal::concepts::ConceptUtils::sameType(const T&, const T&)’
117 | void sameType( const T & /* t1 */, const T & /* t2 */ ) {}
| ^~~~~~~~
DGtal/src/src/DGtal/base/ConceptUtils.h:117:8: note: template argument deduction/substitution failed:
In file included from DGtal/src/src/DGtal/base/CPredicate.h:45,
from DGtal/src/src/DGtal/kernel/BasicPointPredicates.h:50,
from DGtal/src/src/DGtal/kernel/domains/HyperRectDomain.h:49,
from DGtal/src/src/DGtal/helpers/StdDefs.h:47,
from DGtal/DGtalTools-src/converters/itk2vol.cpp:33:
DGtal/src/src/DGtal/base/CUnaryFunctor.h:98:29: note: deduced conflicting types for parameter ‘const T’ (‘int’ and ‘unsignedchar’)
98 | ConceptUtils::sameType( r, x.operator() ( a ) );
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
It can be reproduced when DGtal option WITH_ITK is enabled.
The text was updated successfully, but these errors were encountered:
The failing concept is from DGtal ITKWriter
Error:
It can be reproduced when DGtal option
WITH_ITK
is enabled.The text was updated successfully, but these errors were encountered: