I would like to add some class operators to a record, but I still want to code to compile under older Delphi versions.
What define should I use so that the operator will compile in all versions that support it, but will be ignored in older Delphi versions.
type
Iso8601 = {$ifndef UNICODE}object{$else}record{$endif}
data: Integer;
{$ifdef ????} <-- what to put here
class operator Add(A: Iso8601): Iso8601;
{$endif}
end;
I know that records with member functions coincide with the Unicode update, but what define do I use for the class operators?