We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6075268 commit fdf3e9bCopy full SHA for fdf3e9b
include/oneapi/dpl/pstl/zip_view_impl.h
@@ -200,7 +200,7 @@ class zip_view : public std::ranges::view_interface<zip_view<Views...>> {
200
friend constexpr auto operator-(const iterator& x, const iterator& y)
201
requires all_random_access<Const, Views...>
202
{
203
- return x.distance_to_it(y.current_, std::make_index_sequence<sizeof...(Views)>());
+ return y.distance_to_it(x.current_, std::make_index_sequence<sizeof...(Views)>());
204
}
205
206
friend constexpr iterator operator+(iterator it, difference_type n)
0 commit comments