[Issue 15494] New: moveEmplaceAll should support const?

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jan 1 07:54:54 PST 2016


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 at puremagic.com
          Reporter: turkeyman at 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?

--


More information about the Digitalmars-d-bugs mailing list