Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$
prog.cc: In instantiation of 'struct A<B>':
prog.cc:16:12: required from here
prog.cc:11:57: error: incomplete type 'B' used in nested name specifier
typename std::enable_if<T::template static_func<T1>(), void> sfinae_func() {
^
prog.cc: In function 'int main()':
prog.cc:21:7: error: 'struct B' has no member named 'sfinae_func'
a.sfinae_func<int>();
^
prog.cc:21:19: error: expected primary-expression before 'int'
a.sfinae_func<int>();
^
prog.cc:21:19: error: expected ';' before 'int'
Exit Code:
1