[fpc-pascal] Generic TFPGList<Record Type> gives me compiler error: Operator is not overloaded

Dennis Poon dennis at avidsoft.com.hk
Tue Sep 17 14:52:08 CEST 2013


I have this:
uses fgl;

Type
   RScene=record
     ID : Word;
     Name, Category : String;
   end;

   TSceneList=specialize TFPGList<RScene>;


The error is:  Operator is not overloaded: "RScene" = "RScene"


I suppose the generic thing does not know how to compare 2 records.
How do I solve that?

Dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130917/f29b8fd1/attachment.html>


More information about the fpc-pascal mailing list