[Issue 4936] New: Regression(2.049) std.algorithm.completeSort doesn't match string arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 24 16:38:01 PDT 2010


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

           Summary: Regression(2.049) std.algorithm.completeSort doesn't
                    match string arrays
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: Jesse.K.Phillips+D at gmail.com
                CC: Jesse.K.Phillips+D at gmail.com


--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2010-09-24 16:37:19 PDT ---
Basically two string[] fail to mach the completeSort signature. This worked
with 2.048

import std.algorithm;

void main() {
   auto foo = ["a the way home", "can I say"];
   auto bar = ["be it here or there", "you may"];

   completeSort(foo, bar);
}

test.d(7): Error: template std.algorithm.completeSort(alias less = "a <
b",SwapStrategy ss = SwapStrategy.unstable,Range1,Range2) if
(hasLength!(Range2) && hasSlicing!(Range2)) does not match any function
template declaration

test.d(7): Error: template std.algorithm.completeSort(alias less = "a <
b",SwapStrategy ss = SwapStrategy.unstable,Range1,Range2) if
(hasLength!(Range2) && hasSlicing!(Range2)) cannot deduce template function
from argument types !()(string[],string[])

-- 
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