我一直在处理这个问题,现在它几乎准备好从编译器得到这个错误:“类仆人不是模板类型”我一直在阅读其他论坛关于这个问题的帖子,但我没有看到任何问题(我自己但是编译器是的!),可以得到任何帮助吗?提前谢谢,这是代码
static int aDefaultValue=0;
//class T;
template <typename T>
class Servant
{
public:
typedef typename T & ReferenceType;
typedef const typename T * ConstPtrType;
typedef typename T * ptrType;
Servant(){}
ptrType analizarQos(ptrType aMetodo= 0,int & aResult = aDefaultValue)
{
if (!aMetodo)
{
aResult=-1;
return aMetodo;
}
//check for timeout del metodo
//lleno el mensaje con la info
}
private:
~Servant(){}
//avoid copias
Servant(const Servant &);
const Servant & operator=(const Servant &);
};