[fpc-pascal] fgl.TFPGMap

Alex Shishkin alexvins at mail.ru
Fri Jan 21 13:27:55 CET 2011


21.01.2011 3:07, Paul Ishenin пишет:
> 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
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
Also please see http://bugs.freepascal.org/view.php?id=18573, this 
related with generics to.
Alex



More information about the fpc-pascal mailing list