fork(6) download
  1. #include <string>
  2.  
  3. template<typename T>
  4. void test(const T & x);
  5.  
  6. template<>
  7. void test<std::string>(const std::string & test)
  8. {
  9. }
  10.  
  11. template<>
  12. void test<const char *>(const char * const & test)
  13. {
  14. }
  15.  
  16. int main()
  17. {
  18. test("test");
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/uwKEeB/prog-e66fb0.o: In function `main':
prog.cpp:(.text+0x27): undefined reference to `void test<char [5]>(char const (&) [5])'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
stdout
Standard output is empty