#1 2021-12-01 18:48:21

tbo
Member
Registered: 2015-04-20
Posts: 353

Commit 0081ea9

Delphi XE, mORMot2 commit 0081ea9
Unit mormot.crypt.secure.pas, line 1066, 1119

    function Process(const src: TBytes; out dst: TBytes;
      const aeadinfo: TBytes = nil): boolean; overload;     <--- TBytes = nil !!!

[DCC Fehler] mormot.crypt.secure.pas(1066): E2268 Parameter dieses Typs dürfen keine Standardwerte haben
Translation: Parameters of this type must not have default values

With best regards
Thomas

Offline

#2 2021-12-01 19:15:30

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Commit 0081ea9

This is clearly a Delphi XE bug.
I don't have any problem with Delphi 7, 2007, 2009, 2010, XE4, XE7, XE8, 10.3 or 10.4.2...

I tried to circumvent Delphi XE bug by using TByteDynArray instead of TBytes...
Please try https://github.com/synopse/mORMot2/commit/a2332cebb75b9

Offline

Board footer

Powered by FluxBB