person<worker> people (w);
I have person
class and worker
class, I want to create people objects from the person
class.
//person.cpp
template <class T>
person<T>::~person()
{
//dtor
}
//person.h
template <class T>
class person
{
public:
person();
person(T a);
virtual ~person();
};
I get
undefined reference to `person<worker>::person(worker).
What am I doing wrong?