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: nob...@puremagic.com
        ReportedBy: ah0801...@yahoo.com


--- Comment #0 from Austin Hastings <ah0801...@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: -------

Reply via email to