Bug 19085 – std.experimental.allocator.makeArray should work with void
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-07-13T21:46:09Z
Last change time
2018-09-01T18:58:50Z
Keywords
pull
Assigned to
No Owner
Creator
John Colvin
Comments
Comment #0 by john.loughran.colvin — 2018-07-13T21:46:09Z
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