Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use only C++20 features #1702

Draft
wants to merge 2 commits into
base: distributed-ranges
Choose a base branch
from

Conversation

BenBrock
Copy link
Contributor

There are still some compilation issues with chained views.

@@ -57,11 +58,11 @@ class enumerate_adapter_closure
using W = std::conditional_t<std::weakly_incrementable<S>, S, std::size_t>;
if constexpr (rng::sized_range<R>)
{
return rng::views::zip(rng::views::iota(W{0}, W{rng::size(r)}), std::forward<R>(r));
return oneapi::dpl::experimental::dr::shp::views::zip(rng::views::iota(W{0}, W{rng::size(r)}), std::forward<R>(r));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is already in "oneapi::dpl::experimental::dr" namespace, use just "shp::"... Please use shorter namespaces also in other places where full namespace is not needed.

@@ -16,6 +16,7 @@
#pragma once

#include <oneapi/dpl/internal/distributed_ranges_impl/detail/ranges_shim.hpp>
#include <oneapi/dpl/internal/distributed_ranges_impl/shp/zip_view.hpp>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is common code for mhp and shp. We can't use shp specific code here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants