Hi.
I need to sort a list containing a class I've called Tbau_feature. I have overloaded the less-than operator in the class definition, and it performs the comparison on a long value called Famendment_number with the following code:
virtual bool operator<(const Tbau_feature& rhs){
return Famendment_number<rhs.Famendment_number;}
The trouble is, I get this error when I try to compile:
E2093 'operator<' not implemented in type 'Tbau_feature' for arguments of the same type
The program compiles fine when I comment out any line telling a list to perform the sort (typically "feat_list.sort()"
, so does anyone know what I could be doing wrong?
Cheers for any & all help,
Douglas JL
Common sense is what tells you the world is flat.
I need to sort a list containing a class I've called Tbau_feature. I have overloaded the less-than operator in the class definition, and it performs the comparison on a long value called Famendment_number with the following code:
virtual bool operator<(const Tbau_feature& rhs){
return Famendment_number<rhs.Famendment_number;}
The trouble is, I get this error when I try to compile:
E2093 'operator<' not implemented in type 'Tbau_feature' for arguments of the same type
The program compiles fine when I comment out any line telling a list to perform the sort (typically "feat_list.sort()"
Cheers for any & all help,
Douglas JL
Common sense is what tells you the world is flat.