[Issue 19783] Fail to emplace struct with betterC

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 23 09:54:00 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=19783

--- Comment #2 from Tomáš Chaloupka <chalucha at gmail.com> ---
For the record, this works (uses different template):

auto pf = (cast(Foo*)malloc(Foo.sizeof)).emplace!Foo(42);

--


More information about the Digitalmars-d-bugs mailing list