草庐IT

UpdateUtils

全部标签

C++ 模板 t 不是有效的模板类型

我的.h文件:templateclassUpdateUtils{public:typedefstruct{QListfile;}TPath;staticTPath*getIdealPath(QList&paths);};我的.cpp文件:templateTPath*UpdateUtils::getIdealPath(QList&paths){return0;}这会在cpp文件中产生错误:error:C2143:syntaxerror:missing';'before'*'error:C2065:'T':undeclaredidentifiererror:C2923:'UpdateUti