This simple piece of code causes a core dump. I'm using gcc 4.8.2 in Linux.
template <class T>
int main(int argc, char **argv)
X<string> *x = new X<string>;
I appreciate any help, I'm really confused with this. It doesn't cause a core dump when I use int instead of string.
new  so you need to call
delete  x;