At last!
A C++ problem!
I have a class (called Tdb_field) with the following operator both defined & implemented:
virtual bool operator==(Tdb_field& rhs);
This works just fine. However, another fully defined & implemented has the compiler telling me that it hasn't been implemented:
virtual bool operator==(long& rhs);
The line that throws the error is:
if(!(fld==(long)12345))
ShowMessage("operator== error"
I know that operators are sometimes defined as friends & stuff, so could it be that? I'm afraid I know nothing about the friend keyword or it's effects.
Any & all help gratefully received!
Cheers,
Douglas J. Livesey
Common sense is what tells you the world is flat.
A C++ problem!
I have a class (called Tdb_field) with the following operator both defined & implemented:
virtual bool operator==(Tdb_field& rhs);
This works just fine. However, another fully defined & implemented has the compiler telling me that it hasn't been implemented:
virtual bool operator==(long& rhs);
The line that throws the error is:
if(!(fld==(long)12345))
ShowMessage("operator== error"
I know that operators are sometimes defined as friends & stuff, so could it be that? I'm afraid I know nothing about the friend keyword or it's effects.
Any & all help gratefully received!
Cheers,
Douglas J. Livesey
Common sense is what tells you the world is flat.