fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. template<typename... Ts>
  7. void VariadicFuncRef(const Ts&... args) { }
  8.  
  9. template<typename... Ts>
  10. void VariadicFuncPtr(Ts*... args) { }
  11.  
  12. template<typename... Ts>
  13. void VariadicFuncRef2(const Ts... &args) { }
  14.  
  15. template<typename... Ts>
  16. void VariadicFuncPtr2(Ts... *args) { }
  17.  
  18.  
  19. int main() {
  20. /*VariadicFuncRef(1, "Hello World!", 12.2112);
  21.   int i;
  22.   VariadicFuncPtr(&i);*/
  23. }
Compilation error #stdin compilation error #stdout 0s 2924KB
stdin
Standard input is empty
compilation info
prog.cpp:13:35: error: expected ',' or '...' before '&' token
prog.cpp:16:29: error: expected ',' or '...' before '*' token
stdout
Standard output is empty