Click to See Complete Forum and Search --> : STL Templates


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.

Dave Lorde
April 23rd, 1999, 05:02 AM
If you want some links to STL sites try:

http://www.xmission.com/~ksvhsoft/stl_links.html

Without more detail (e.g. code) of what you are trying to do and the exact errors you get, I can't really help.

Dave