#include <string> template<typename T>void test(const T & x); template<>void test<std::string>(const std::string & test){} template<>void test<const char *>(const char * const & test){} int main(){ test("test");}
Standard input is empty
/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)
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!