File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2728,9 +2728,8 @@ Returns:
27282728*/
27292729Tuple ! (InputRange1, InputRange2)
27302730swapRanges(InputRange1, InputRange2)(InputRange1 r1, InputRange2 r2)
2731- if (isInputRange! (InputRange1) && isInputRange! (InputRange2)
2732- && hasSwappableElements! (InputRange1) && hasSwappableElements! (InputRange2)
2733- && is (ElementType! (InputRange1) == ElementType! (InputRange2)))
2731+ if (hasSwappableElements! InputRange1 && hasSwappableElements! InputRange2
2732+ && is (ElementType! InputRange1 == ElementType! InputRange2))
27342733{
27352734 for (; ! r1.empty && ! r2.empty; r1.popFront(), r2.popFront())
27362735 {
Original file line number Diff line number Diff line change @@ -1261,7 +1261,7 @@ R r;
12611261static assert(isInputRange!R);
12621262swap(r.front, r.front);
12631263static if (isBidirectionalRange!R) swap(r.back, r.front);
1264- static if (isRandomAccessRange!R) swap(r[], r.front);
1264+ static if (isRandomAccessRange!R) swap(r[0 ], r.front);
12651265----
12661266 */
12671267template hasSwappableElements (R)
You can’t perform that action at this time.
0 commit comments