mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 07:00:37 +03:00
adjust setops.cartesianProduct() for dip1000
This commit is contained in:
parent
6b9ce384d9
commit
eb8aed9728
1 changed files with 3 additions and 3 deletions
|
@ -393,7 +393,7 @@ if (ranges.length >= 2 &&
|
||||||
return mixin(algoFormat("tuple(%(current[%d].front%|,%))",
|
return mixin(algoFormat("tuple(%(current[%d].front%|,%))",
|
||||||
iota(0, current.length)));
|
iota(0, current.length)));
|
||||||
}
|
}
|
||||||
void popFront()
|
void popFront() scope @trusted // @trusted until dmd #9220 is pulled
|
||||||
{
|
{
|
||||||
foreach_reverse (i, ref r; current)
|
foreach_reverse (i, ref r; current)
|
||||||
{
|
{
|
||||||
|
@ -406,12 +406,12 @@ if (ranges.length >= 2 &&
|
||||||
r = ranges[i].save; // rollover
|
r = ranges[i].save; // rollover
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property Result save()
|
@property Result save() scope return
|
||||||
{
|
{
|
||||||
Result copy = this;
|
Result copy = this;
|
||||||
foreach (i, r; ranges)
|
foreach (i, r; ranges)
|
||||||
{
|
{
|
||||||
copy.ranges[i] = r.save;
|
copy.ranges[i] = ranges[i].save;
|
||||||
copy.current[i] = current[i].save;
|
copy.current[i] = current[i].save;
|
||||||
}
|
}
|
||||||
return copy;
|
return copy;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue