[Issue 15677] New: std.experimental.allocators.expandArray overload with init should take the array by ref.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Feb 12 13:17:48 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15677
Issue ID: 15677
Summary: std.experimental.allocators.expandArray overload with
init should take the array by ref.
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: qaston at gmail.com
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.
--
More information about the Digitalmars-d-bugs
mailing list