August 27th, 2001, 01:54 PM
I have defined a class T with 2 attributes, overloaded the operator< , and used this as the first parameter in an the stl multimap.
The problem is the compiler complains that stl can't handle the overloaded operator<. Some error about using the this pointer
and how it doesn't qualify as a parameter in the stl function.h
I hope you know better than I what that all means, because I was sure that operator overloading was necessary for user defined classes used as the key in a multimap and using the less<> function to do insertions into it.
Please email me any suggestions at: thewarman@yahoo.com
The problem is the compiler complains that stl can't handle the overloaded operator<. Some error about using the this pointer
and how it doesn't qualify as a parameter in the stl function.h
I hope you know better than I what that all means, because I was sure that operator overloading was necessary for user defined classes used as the key in a multimap and using the less<> function to do insertions into it.
Please email me any suggestions at: thewarman@yahoo.com