#include using namespace std; template class people{ public: virtual void insert(T item)=0; virtual T show(T info)=0; };
name is a templated class, so you must specify the template:
name
people<name<string>>* aPerson = new person<name<string>>();