mehollifield
April 22nd, 1999, 05:54 PM
I am looking for some sample STL code. More specifically, some code that uses the list template with a class and overloads the operators. I can use list just fine, as long as I put numbers in it that do not require any overloaded operators. However, a serious compiler problem arises when I attempt to overload operators for my class. Basically, the compiler tells me that I must have lost my mind, because there is no way that an operator is defined for the operation I am trying to perform. (of course, not in that particular syntax, but I get it's drift). If I could just see how to overload those puppies, I think I could get things rolling.
As usual, any and all help is greatly appreciated.
As usual, any and all help is greatly appreciated.