www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15677] New: std.experimental.allocators.expandArray overload


          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 puremagic.com
          Reporter: qaston 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

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.

Feb 12 2016