Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In instantiation of 'static decltype(auto) Foo<Type>::impl(T&&) [with T = Something; Type = Something]':
prog.cc:39:39: recursively required by substitution of 'template<class Type> class Test<Type, EnableIfHasFoo<Type> > [with Type = Something]'
prog.cc:39:39: required from here
prog.cc:22:19: error: no matching function for call to 'foo(Something)'
return foo(std::forward<T>(t));
~~~^~~~~~~~~~~~~~~~~~~~
prog.cc:6:6: note: candidate: template<class T> void foo_name::foo()
void foo();
^~~
prog.cc:6:6: note: template argument deduction/substitution failed:
prog.cc:22:19: note: candidate expects 0 arguments, 1 provided
return foo(std::forward<T>(t));
~~~^~~~~~~~~~~~~~~~~~~~
Exit Code:
1