Skip to content

Commit fdf3e9b

Browse files
committed
[oneDPL][ranges][zip_view][test] a fix for zip_view::iterator::operator-
1 parent 6075268 commit fdf3e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/oneapi/dpl/pstl/zip_view_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class zip_view : public std::ranges::view_interface<zip_view<Views...>> {
200200
friend constexpr auto operator-(const iterator& x, const iterator& y)
201201
requires all_random_access<Const, Views...>
202202
{
203-
return x.distance_to_it(y.current_, std::make_index_sequence<sizeof...(Views)>());
203+
return y.distance_to_it(x.current_, std::make_index_sequence<sizeof...(Views)>());
204204
}
205205

206206
friend constexpr iterator operator+(iterator it, difference_type n)

0 commit comments

Comments
 (0)