Bug 15677 – std.experimental.allocators.expandArray overload with init should take the array by ref.
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-02-12T21:17:00Z
Last change time
2016-02-14T17:13:08Z
Assigned to
nobody
Creator
qaston
Comments
Comment #0 by qaston — 2016-02-12T21:17:48Z
All other overloads of std.experimental.allocators.expandArray take an array by reference and modify the given array to allow the caller to use the expanded array.
It should be the same for the overload which takes init value, but it looks like that someone forgot to put the ref modifier there.