Language
Compiler
Options
$
prog.cc:8:31: error: no viable conversion from 'Derived' to 'Base'
using type = decltype( f( std::declval<Derived>() ) );
^~~~~~~~~~~~~~~~~~~~~~~
prog.cc:3:8: note: candidate constructor (the implicit copy constructor) not viable: cannot convert argument of incomplete type 'Derived' to 'const Base &' for 1st argument
struct Base {};
^
prog.cc:3:8: note: candidate constructor (the implicit move constructor) not viable: cannot convert argument of incomplete type 'Derived' to 'Base &&' for 1st argument
struct Base {};
^
prog.cc:3:8: note: passing argument to parameter here
1 error generated.
Exit Code:
1