inheritance from template class need help
Dec 9, 2017 at 11:36pm UTC
Hello,
I got this error while :undefined reference to `QueType<JobType>::QueType(int)'
while inheriting overload construcor here the line where I have problem. in the cpp file
1 2 3 4 5 6
#include "waitingCustomerQueueType.h"
waitingCustomerQueueType::waitingCustomerQueueType(int size) : QueType(size)
{
//ctor
}
The header file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef WAITINGCUSTOMERQUEUETYPE_H
#define WAITINGCUSTOMERQUEUETYPE_H
#include <QueType.h>
#include "JobType.h"
class waitingCustomerQueueType : public QueType <JobType>
{
public :
waitingCustomerQueueType(int size =100);
//virtual ~waitingCustomerQueueType();
protected :
private :
};
#endif // WAITINGCUSTOMERQUEUETYPE_H
Thank you
Last edited on Dec 9, 2017 at 11:36pm UTC
Topic archived. No new replies allowed.