July 13, 2019 [Issue 20046] New: someAllocator.make!T doesn't compile if T is a shared value type | ||||
---|---|---|---|---|
| ||||
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)) -- |
Copyright © 1999-2021 by the D Language Foundation