fork(4) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template<int I = 0>
  5. int MyVariadic(const char* str, ...);
  6. int MyVariadic(const char* str)
  7. {
  8. return MyVariadic("%s", str);
  9. }
  10.  
  11. int main() {
  12. MyVariadic("Foo");
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/z48xfv/cc5r8Glx.o: In function `MyVariadic(char const*)':
prog.cpp:(.text+0x13): undefined reference to `int MyVariadic<0>(char const*, ...)'
/home/z48xfv/cc5r8Glx.o: In function `main':
prog.cpp:(.text.startup+0x19): undefined reference to `int MyVariadic<0>(char const*, ...)'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty