www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15494] New: moveEmplaceAll should support const?

https://issues.dlang.org/show_bug.cgi?id=15494

          Issue ID: 15494
           Summary: moveEmplaceAll should support const?
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

I feel like moveEmplaceAll(src, target), where target is an uninitialised range
of const(T) should work?

It seems that it only works if target is mutable. const objects must be
initialised somehow, and this function seems like a reasonable form of
initialisation.

Lift this restriction?

--
Jan 01 2016