Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc:7:5: error: static_assert failed "This function accepts N arguments of type Example<N>"
static_assert
^
prog.cc:18:5: note: in instantiation of function template specialization 'Function<3>' requested here
Function(Example<3>{}); // error: This function accepts N arguments of type Example<N>
^
prog.cc:7:5: error: static_assert failed "This function accepts N arguments of type Example<N>"
static_assert
^
prog.cc:20:5: note: in instantiation of function template specialization 'Function<1, 2>' requested here
Function(Example<1>{}, Example<2>{}); // error: This function accepts N arguments of type Example<N>
^
2 errors generated.
Exit Code:
1