Author
anonymous
about 7 years ago
Language
Compiler
Options
Author
anonymous
about 7 years ago
$
prog.cc:12:5: error: no matching function for call to 'foo'
foo<float, 3.14>();
^~~~~~~~~~~~~~~~
prog.cc:4:5: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'value'
int foo() {
^
prog.cc:13:5: error: no matching function for call to 'foo'
foo<std::string, "hello world">();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:4:5: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'value'
int foo() {
^
2 errors generated.
Exit Code:
1