[phobos] [D-Programming-Language/phobos] ba8652: Fix 8368 - Insufficient constraints for sort
GitHub
noreply at github.com
Sun Jan 13 16:21:49 PST 2013
Branch: refs/heads/master
Home: https://github.com/D-Programming-Language/phobos
Commit: ba86527c0447434eaab26233f64367c5303ed133
https://github.com/D-Programming-Language/phobos/commit/ba86527c0447434eaab26233f64367c5303ed133
Author: Peter Alexander <peter.alexander.au at gmail.com>
Date: 2013-01-01 (Tue, 01 Jan 2013)
Changed paths:
M std/algorithm.d
Log Message:
-----------
Fix 8368 - Insufficient constraints for sort
Error from bug code after this change:
```
Error: template std.algorithm.sort does not match any function template declaration. Candidates are:
std/algorithm.d(7820): std.algorithm.sort(alias less = "a < b", SwapStrategy ss = SwapStrategy.unstable, Range)(Range r) if ((ss == SwapStrategy.unstable && (hasSwappableElements!(Range) || hasAssignableElements!(Range)) || ss != SwapStrategy.unstable && hasAssignableElements!(Range)) && isRandomAccessRange!(Range) && hasSlicing!(Range) && hasLength!(Range))
bug.d(6): Error: template std.algorithm.sort(alias less = "a < b", SwapStrategy ss = SwapStrategy.unstable, Range)(Range r) if ((ss == SwapStrategy.unstable && (hasSwappableElements!(Range) || hasAssignableElements!(Range)) || ss != SwapStrategy.unstable && hasAssignableElements!(Range)) && isRandomAccessRange!(Range) && hasSlicing!(Range) && hasLength!(Range)) cannot deduce template function from argument types !()(MapResult!(__lambda2, string[]))
```
Fixes Issue 8368
http://d.puremagic.com/issues/show_bug.cgi?id=8368
Commit: b89adc00373d8e90a9d7ecbdb1c6587c7f1a04f3
https://github.com/D-Programming-Language/phobos/commit/b89adc00373d8e90a9d7ecbdb1c6587c7f1a04f3
Author: Peter Alexander <peter.alexander.au at gmail.com>
Date: 2013-01-10 (Thu, 10 Jan 2013)
Changed paths:
M std/algorithm.d
Log Message:
-----------
Added explanation of requirements in comments.
Commit: 2973b7ed2d50ca848628e7d5dcbbffbfa7f0b6ca
https://github.com/D-Programming-Language/phobos/commit/2973b7ed2d50ca848628e7d5dcbbffbfa7f0b6ca
Author: Alex Rønne Petersen <alex at alexrp.com>
Date: 2013-01-13 (Sun, 13 Jan 2013)
Changed paths:
M std/algorithm.d
Log Message:
-----------
Merge pull request #1048 from Poita/bug8368
Issue 8368 - Insufficient constraints for sort
Compare: https://github.com/D-Programming-Language/phobos/compare/bdc959933c56...2973b7ed2d50
More information about the phobos
mailing list