Hello,

I need to overload my comparison operators such as == and < so that I can use things such as std::sort and std::unique on a vector of some user defined classes. I know how to overload them globally. The problem is I need to overload these operators as member functions and I am kind of stuck. I am assuming it is a fairly simple problem. Any help would be great, thank you!

Cameron

Thank you very much. I actually found it on google right before I looked on here again for a reply. The joys of not realizing a search term until you type it in as a title of a post. :)

Thanks again,

Cameron

This question has already been answered. Start a new discussion instead.