[Issue 20046] New: someAllocator.make!T doesn't compile if T is a shared value type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 13 09:09:21 UTC 2019


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 at puremagic.com
          Reporter: htvennik at 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))

--


More information about the Digitalmars-d-bugs mailing list