How to call destroy() in @nogc?

Tejas notrealemail at gmail.com
Tue May 24 02:55:06 UTC 2022


On Tuesday, 24 May 2022 at 02:29:38 UTC, cc wrote:
> ```d
> import core.memory;
> import core.stdc.stdlib : malloc, free;
> import core.lifetime : emplace;
>
> [...]

FWIW your code will compile if you add `extern(C++)` to `Foo`


More information about the Digitalmars-d-learn mailing list