mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00
Merge pull request #1047 from Poita/bug8367
Issue 8367 - Insufficient constraints for chain
This commit is contained in:
commit
ca44a116d5
1 changed files with 3 additions and 1 deletions
|
@ -2019,7 +2019,9 @@ assert(equal(s, [1, 2, 3, 4, 5, 6, 7][]));
|
|||
----
|
||||
*/
|
||||
auto chain(Ranges...)(Ranges rs)
|
||||
if (Ranges.length > 0 && allSatisfy!(isInputRange, staticMap!(Unqual, Ranges)))
|
||||
if (Ranges.length > 0 &&
|
||||
allSatisfy!(isInputRange, staticMap!(Unqual, Ranges)) &&
|
||||
!is(CommonType!(staticMap!(ElementType, staticMap!(Unqual, Ranges))) == void))
|
||||
{
|
||||
static if (Ranges.length == 1)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue