c++ type/value mismatch at argument 1 in template parameter list

前端 未结 1 1061
鱼传尺愫
鱼传尺愫 2020-12-19 11:16
#include 
using namespace std;

template
class people{
    public:
    virtual void insert(T item)=0;
    virtual T show(T info)=0;
};         


        
相关标签:
1条回答
  • 2020-12-19 11:49

    name is a templated class, so you must specify the template:

    people<name<string>>* aPerson = new person<name<string>>();
    
    0 讨论(0)
提交回复
热议问题