Commit 627a04a2 authored by Julien Michel's avatar Julien Michel

Merge branch 'functorfilter-take2' of…

Merge branch 'functorfilter-take2' of https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb into functorfilter-take2
parents 12fbcfa8 91907df2
......@@ -64,7 +64,7 @@ template <class T> struct IsSuitableType<std::complex<T>> : IsSuitableType<T>::t
template <class T> struct IsSuitableType<itk::VariableLengthVector<T>> : IsSuitableType<T>::type {};
/// Unwrap FixedArray
template <class T, size_t N> struct IsSuitableType<itk::FixedArray<T,N>> : IsSuitableType<T>::type {};
template <class T, unsigned int N> struct IsSuitableType<itk::FixedArray<T,N>> : IsSuitableType<T>::type {};
/// Unwrap RGBPixel
template <class T> struct IsSuitableType<itk::RGBPixel<T>> : IsSuitableType<T>::type {};
......
......@@ -149,6 +149,7 @@ template <typename TOut,typename TIn> struct TestOperatorVoidReturn
// avoid C++ parse
// ambiguity
auto res = filter->template GetVariadicInput<0>();
filter->Update();
// Test named input version
......@@ -160,7 +161,10 @@ template <typename TOut,typename TIn> struct TestOperatorVoidReturn
res = filter1->template GetVariadicNamedInput<tag>();
res = filter1->GetVariadicNamedInput(tag{});
filter1->Update();
// Hack to silent -Wunused-but-set-variable
std::cout<<res<<std::endl;
// Test with void return
auto functorWithVoidReturn = TestOperatorVoidReturn<TOut,TIn>{};
auto filterWithVoidReturn = NewFunctorFilter(functorWithVoidReturn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment