https://issues.dlang.org/show_bug.cgi?id=19783
--- Comment #2 from Tomáš Chaloupka <[email protected]> --- For the record, this works (uses different template): auto pf = (cast(Foo*)malloc(Foo.sizeof)).emplace!Foo(42); --
d-bugmail--- via Digitalmars-d-bugs Wed, 23 Dec 2020 01:54:21 -0800
https://issues.dlang.org/show_bug.cgi?id=19783
--- Comment #2 from Tomáš Chaloupka <[email protected]> --- For the record, this works (uses different template): auto pf = (cast(Foo*)malloc(Foo.sizeof)).emplace!Foo(42); --