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
Comment #1 by greensunny12 — 2018-08-16T12:31:04Z
Comment #2 by github-bugzilla — 2018-09-01T18:58:49Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/6479a70a3b409871aae4a4a9a044cf429d6c1ca1 Fix Issue 19085 - std.experimental.allocator.makeArray should work with void https://github.com/dlang/phobos/commit/ab169cefe5bc17870ae77bbd55132735fa64a5cb Merge pull request #6670 from wilzbach/fix-19085 Fix Issue 19085 - std.experimental.allocator.makeArray should work with void merged-on-behalf-of: Nathan Sashihara <[email protected]>