I want to use TFPGMap from fgl module with my own types. I have something like this:
type
TMyMap = specialize TFPGMap<TMyType1, TMyType2>;
TMyType1 and TMyType2 - my custom types (classes).
But when I compile my code, I get the error:
fgl.pp(1582,18) Error: Operator is not overloaded: "TMyType1" < "TMyType1"
Is there a way to overload the operator to allow my code compile? I tried to overload it in my module, but this does not help.
P. S. I didn't use free pascal for about 10 years, and don't know much about its new features. So, if there is another way to use any kind of map for two custom object types, it is also OK for me.