[fpc-pascal] fgl.TFPGMap

Paul Ishenin webpirat at mail.ru
Fri Jan 21 01:07:32 CET 2011


21.01.2011 0:28, Alex Shishkin wrote:
> Following code causes error "Operator is not overloaded: "TObject" < 
> "TObject""
> How to make it work?
>
> program generictest2;
> {$mode objfpc}{$H+}
> uses
>   fgl;
> operator < (a: TObject; b: TObject): boolean;
> begin
>   result := PtrInt(a) < PtrInt(b);
> end;
> type
>   TMyMap = specialize TFPGMap <TObject, TObject>;
> begin
> end.
Please report this bug to the tracker.

Best regards,
Paul Ishenin



More information about the fpc-pascal mailing list