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`