We propose the following change to the C++ Working Paper. If an mdspan object x has noncomplex value_type, and if that mdspan does not already have accessor type conjugated_accessor<A> for some nested accessor type A, then we propose to change conjugated(x) just to return x. Delaying this until after C++26 would be a breaking change.
Abstract:
We propose the following change to the C++ Working Paper. If an
mdspan
objectx
has noncomplexvalue_type
, and if thatmdspan
does not already have accessor typeconjugated_accessor<A>
for some nested accessor typeA
, then we propose to changeconjugated(x)
just to returnx
. Delaying this until after C++26 would be a breaking change.I submitted this today (2024/04/08) as P3050R1.
This supersedes PR https://github.com/ORNL/cpp-proposals-pub/pull/437 , which I created in November 2023, and which still hasn't been merged.