#1 2020-11-09 16:36:49

Javierus
Member
Registered: 2019-09-18
Posts: 43

D2007: Can't compile SybCommons.pas

Hello,

In today's refactoring, compiling SynCommons with D2007 stops with this error:
[DCC Error] SynCommons.pas(24041): E2251 Ambiguous overloaded call to 'Trim'

The offending line is:

function TrimU(const S: RawUTF8): RawUTF8;
begin
  result := Trim(s);  <------
end;

Offline

#2 2020-11-09 16:40:14

Javierus
Member
Registered: 2019-09-18
Posts: 43

Re: D2007: Can't compile SybCommons.pas

I don't know if this is right or not, but removing the SynUnicode Trim version and the overload qualifier, it compiles fine

function Trim(const S: SynUnicode): string;

Offline

#3 2020-11-09 20:04:56

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,388
Website

Re: D2007: Can't compile SybCommons.pas

You are right.

Please check https://synopse.info/fossil/info/37016e9478

Sorry for the inconvenience.

Offline

Board footer

Powered by FluxBB