[Issue 4994] New: std.range assumeSorted and SortedRange!() don't work with immutables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 4 15:52:59 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4994

           Summary: std.range assumeSorted and SortedRange!() don't work
                    with immutables
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: ah08010-d at yahoo.com


--- Comment #0 from Austin Hastings <ah08010-d at yahoo.com> 2010-10-04 15:52:36 PDT ---
The assumeSorted and SortedRange templates cannot work with immutable data.

Apparently, one requirement for being sorted is supporting .save. The
SortedRange!().save as written uses typeof() to copy the type of the input,
without stripping off immutability.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list