Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$
prog.cc:23:12: error: no viable constructor or deduction guide for deduction of template arguments of 'A'
auto a2 = X2<int>::A{42};
^
prog.cc:13:9: note: candidate template ignored: could not match 'A<T>' against 'int'
struct A {
^
prog.cc:13:9: note: candidate function template not viable: requires 0 arguments, but 1 was provided
1 error generated.
Exit Code:
1