www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19085] New: std.experimental.allocator.makeArray should work


          Issue ID: 19085
           Summary: std.experimental.allocator.makeArray should work with
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

As the title says, for generic code to work nicely makeArray should work to
make a void[], currently you get

std/experimental/allocator/package.d(1494,11): Error: variable
variables cannot be of type void
std/experimental/allocator/package.d(1494,15): Error: void does not have a
default initializer
std/experimental/allocator/package.d(1580,71): Error: template instance
`std.experimental.allocator.uninitializedFillDefault!void` error instantiating

Jul 13 2018