Bug 20046 – someAllocator.make!T doesn't compile if T is a shared value type
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2019-07-13T09:09:21Z
Last change time
2019-07-19T00:23:41Z
Keywords
pull
Assigned to
No Owner
Creator
Harry Vennik
Comments
Comment #0 by htvennik — 2019-07-13T09:09:21Z
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))
Comment #1 by dlang-bot — 2019-07-13T09:15:21Z
@thaven updated dlang/phobos pull request #7107 "Get make!T to compile when T is a shared value type" fixing this issue:
- Fix Issue 20046 - Get make!T to compile when T is a shared value type
https://github.com/dlang/phobos/pull/7107
Comment #2 by dlang-bot — 2019-07-19T00:23:41Z
dlang/phobos pull request #7107 "Get make!T to compile when T is a shared value type" was merged into stable:
- c44b4717cf5c66dafe6143b18d07c573742cfd9e by Harry T. Vennik:
Fix Issue 20046 - Get make!T to compile when T is a shared value type
https://github.com/dlang/phobos/pull/7107