Notice the {$MODE DELPHI} directive. On Thu, Apr 26, 2012 at 17:24, Lukasz Sokol <el.es...@gmail.com> wrote: > On 26/04/2012 10:14, JC Chu wrote: >> It fails because the operators < and > are not defined for TObject, >> which is assumed by TFPGMap<TKey, TValue>.KeyCompare(). >> >> As a makeshift you can implement a record type to wrap TObject and >> define these operators for it. See the attached file for an >> example. >> >> Hope it helps. >> > > The OP asks for generics usage, not for the operator overload (notice the > 'specialize' keyword). > > L. > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-- Best Regards, JC Chu _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal