Template error with gdc-10 but not with latest dmd and ldc

Per Nordlöw per.nordlow at gmail.com
Sun Jul 26 21:53:03 UTC 2020


On Sunday, 26 July 2020 at 21:48:09 UTC, Per Nordlöw wrote:
> I see. Thanks.

The code

     long add_long_n0(alias T=void)(long x) { return x + 0; }

should be

     long add_long_n0(T=void)(long x) { return x + 0; }

. My mistake.

Thanks.


More information about the Digitalmars-d-learn mailing list