|
-
August 27th, 2001, 01:54 PM
#1
STL and operator< (for the less<>function)
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: [email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|