Why can't class that derived from template class use virtual destructor

前端 未结 0 1850
庸人自扰
庸人自扰 2021-02-20 10:50
/*Graph.h*/
template
class Graph
{
public:
    virtual ~Graph() = 0;

    /*顶点操作*/
    ...

    /*边操作*/
    ...

protected:
    int n;  /         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题