VBDotNetProgrammer
Programmer
Hi All,
Im trying to write a class which contains itself as a private member, kind of like a recursive class definitions.
i.e.
class COperator
{
private:
COperator _operator;
public:
COperator();
~COperator();
};
Ive tried putting a prototype above it and it doesnt like that. It just spits out
error C2460: '_operator' : uses 'COperator', which is being defined
d:\fuzzyinferenceengine\rulebase.h(32) : see declaration of 'COperator'
Any help would be greatly appreciated.
Thanks
Im trying to write a class which contains itself as a private member, kind of like a recursive class definitions.
i.e.
class COperator
{
private:
COperator _operator;
public:
COperator();
~COperator();
};
Ive tried putting a prototype above it and it doesnt like that. It just spits out
error C2460: '_operator' : uses 'COperator', which is being defined
d:\fuzzyinferenceengine\rulebase.h(32) : see declaration of 'COperator'
Any help would be greatly appreciated.
Thanks