digitalmars.D.bugs - [Issue 20046] New: someAllocator.make!T doesn't compile if T is a
- d-bugmail puremagic.com (20/20) Jul 13 2019 https://issues.dlang.org/show_bug.cgi?id=20046
https://issues.dlang.org/show_bug.cgi?id=20046 Issue ID: 20046 Summary: someAllocator.make!T doesn't compile if T is a shared value type Product: D Version: D2 Hardware: Other OS: All Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: htvennik gmail.com e.g. auto pi = theAllocator.make!(int)(10); // works auto psi = theAllocator.make!(shared int)(10); // fails Error message: template std.conv.emplaceRef cannot deduce function from argument types !()(shared(int)) --
Jul 13 2019