Oh I didn't notice the typo, duh.  Thanks!!

On 1/24/24 02:57PM, Sven Barth via fpc-pascal wrote:
ppadilcdx via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb am Mi., 24. Jan. 2024, 22:07:

    Thanks for that, now it compiles but it doesn't work, i.e. I added a
    pair and value and then used trygetdata and it can't find it. So
    perhaps
    I'm missing something else :


Your operator needs to establish a true order between the two passed in values. Right now your operators only check a, but not b. That is wrong and thus the map won't work correctly.

Regards,
Sven

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to