From: red floyd on
On Feb 2, 3:12 pm, dragoncoder <pktiw...(a)gmail.com> wrote:
> Hi all, I have the following code.
[redacted]

> While running this code, I expect to see Found in set (as either id or
> code match meaning a perfect match) and also "Some text" being
> printed, becasue set::find should call my custom operator==() function
> to find a match but the output I get is "Not found in set" and also
> "Some text" is not getting printed.
>
std::set doesn't use operator==(), it uses operator<().


--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]