fork(3) download
  1. template<typename... Values>
  2. void foo(Values...)
  3. {
  4. }
  5.  
  6. int main()
  7. {
  8. foo(1, 2, 3, "hello", 'a');
  9. foo({1}, {2, 3});
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:20: error: too many arguments to function ‘void foo(Values ...) [with Values = {}]’
     foo({1}, {2, 3});
                    ^
prog.cpp:2:6: note: declared here
 void foo(Values...)
      ^
stdout
Standard output is empty