Language
Compiler
Options
$
prog.cc:16:28: error: no matching function for call to 'f'
using Type = decltype( Derived::f( 1 ) );
^~~~~~~~~~
prog.cc:12:17: note: candidate template ignored: substitution failure [with Args = <int>]: use of undeclared identifier 'Unknown'
static auto f( Args... args ) -> decltype( Unknown( args... ) );
^ ~~~~~~~
prog.cc:17:33: error: use of undeclared identifier 'Type'
static_assert( std::is_same<Type, char>::value, "" );
^
prog.cc:18:5: error: unknown type name 'Type'
Type a;
^
3 errors generated.
Exit Code:
1