Heromyth wrote:

> I can use it like this:
>    int b = t1.opCmp(info);
> and is it right like this:
>    int b = t1 < info;
> 
> In my test code, I get different value for b. What can I do?

Nothing because the call of the operator `<' interprets the result of the 
call of `opCmp', which is constant in this case!

Remember that the result of `opCmp' is used for at least the operators `<', 
`>', `<=' and `>='.

-manfred
 

Reply via email to