Hi There,

Days ago I posted a message about compiling error related to operator 
overloading. I found the reason now, but don't know how to fix that.  The code 
is:

=========

uses Classes, treap;

type
  TSLCounter = specialize TTreap<TStringList, Integer>;

operator <(sl1, sl2: TStringList): Boolean;

=========

The compiler complains about "<" is not defined for string list.  If I put the 
operator overloading into treap.pas, there is no problem.

Is there anyway to avoid this dilemma?  Because I don't want treap.pas to 
"reversely" rely on a specialized class.

Thanks,
Shannon
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to