[Issue 19085] New: std.experimental.allocator.makeArray should work with void
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Jul 13 21:46:09 UTC 2018
    
    
  
https://issues.dlang.org/show_bug.cgi?id=19085
          Issue ID: 19085
           Summary: std.experimental.allocator.makeArray should work with
                    void
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: john.loughran.colvin at 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
`std.experimental.allocator.uninitializedFillDefault!void.uninitializedFillDefault.t`
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
--
    
    
More information about the Digitalmars-d-bugs
mailing list