[Issue 8367] std.range.chain's template constraint is inadequate
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 8 23:07:36 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8367
--- Comment #1 from github-bugzilla at puremagic.com 2013-01-08 23:07:31 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/1008da752b135e41e26bc9fedeaffe824046be4e
Issue 8367 - Insufficient constraints for chain
The error message from compiling the bug's sample code after this change is:
```
bug.d(11): Error: template std.range.chain does not match any function template
declaration. Candidates are:
std/range.d(2018): std.range.chain(Ranges...)(Ranges rs) if
(Ranges.length > 0 && allSatisfy!(isInputRange, staticMap!(Unqual, Ranges)) &&
!is(CommonType!(staticMap!(ElementType, staticMap!(Unqual, Ranges))) == void))
bug.d(11): Error: template std.range.chain(Ranges...)(Ranges rs) if
(Ranges.length > 0 && allSatisfy!(isInputRange, staticMap!(Unqual, Ranges)) &&
!is(CommonType!(staticMap!(ElementType, staticMap!(Unqual, Ranges))) == void))
cannot deduce template function from argument types !()(MapResult!(__lambda2,
Foo[]),string)
```
Fixes Issue 8367
http://d.puremagic.com/issues/show_bug.cgi?id=8367
https://github.com/D-Programming-Language/phobos/commit/ca44a116d5cad084fe1cb968f23c54059984a06e
Merge pull request #1047 from Poita/bug8367
Issue 8367 - Insufficient constraints for chain
--
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