Author
anonymous
over 8 years ago
Language
Compiler
Options
Author
anonymous
over 8 years ago
$ prog.cc:32:19: error: no viable constructor or deduction guide for deduction of template arguments of 'args'
generic::sort(generic::args { .by = 3 });
^
prog.cc:14:8: note: candidate template ignored: could not match 'args<By>' against 'void'
struct args {
^
prog.cc:14:8: note: candidate function template not viable: requires 0 arguments, but 1 was provided
prog.cc:43:19: error: no viable constructor or deduction guide for deduction of template arguments of 'args'
generic::sort(generic::args { .by = 3 });
^
prog.cc:14:8: note: candidate template ignored: could not match 'args<By>' against 'void'
struct args {
^
prog.cc:38:1: note: candidate template ignored: substitution failure [with By = void]: argument may not have 'void' type
args(By) -> args<By>;
^ ~
prog.cc:14:8: note: candidate function template not viable: requires 0 arguments, but 1 was provided
struct args {
^
2 errors generated.
Exit Code:
1