私はこれに取り組んできましたが、コンパイラからこのエラーを取得する準備がほぼ整いました。しかし、コンパイラはい!)、何か助けを得ることができますか? thx事前に、これがコードです
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 &);
};