Sub-classing templated class without implementing pure virtual method
- by LeopardSkinPillBoxHat
I have the following class definition:
template<typename QueueItemT>
class QueueBC
{
protected:
QueueBC() {};
virtual ~QueueBC() {};
private:
virtual IItemBuf* constructItem(const QueueItemT& item) = 0;
}
I created the following sub-class:
class MyQueue
: public QueueBC<MyItemT>
{
public:
MyQueue();
virtual ~MyQueue();
};
This compiles fine under VS2005, yet I haven't implemented constructItem() in the MyQueue class. Any idea why?