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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.