From e732a08ece50ff0c64196d0d6138d52149cdc898 Mon Sep 17 00:00:00 2001 From: Alexey Kukanov Date: Mon, 5 Aug 2024 14:45:10 +0200 Subject: [PATCH] An experiment to remove owning_view for zip_view::segments() --- .../dpl/internal/distributed_ranges_impl/sp/views/zip.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/oneapi/dpl/internal/distributed_ranges_impl/sp/views/zip.hpp b/include/oneapi/dpl/internal/distributed_ranges_impl/sp/views/zip.hpp index 630e67c22f7..82e8c26fe9a 100644 --- a/include/oneapi/dpl/internal/distributed_ranges_impl/sp/views/zip.hpp +++ b/include/oneapi/dpl/internal/distributed_ranges_impl/sp/views/zip.hpp @@ -221,7 +221,7 @@ class zip_view : public stdrng::view_interface> increment_local_idx(segment_ids, local_idx, size); } - return stdrng::owning_view(std::move(segment_views)); + return segment_views; } // Return a range corresponding to each segment in `segments()`, @@ -257,7 +257,7 @@ class zip_view : public stdrng::view_interface> increment_local_idx(segment_ids, local_idx, size); } - return stdrng::owning_view(std::move(segment_views)); + return segment_views; } auto