ORNL / ORNL/cpp-proposals-pub

P0009: submdspan does not specify returned mdspan's template parameters (esp. element type and accessor)

Open
#147 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
29
Forks
26
PR merge metrics
No merged PRs in 30d

Description

[mdspan.submdspan] in P0009r12 only specifies the behavior of the returned mdspan, without specifying its template parameters. That is, the "see below" in submdspan's return type doesn't point to anything (there's no "Returns" clause). That's OK for the layout (we don't even want to specify that), but probably not OK for the element type and accessor.

Please see the somewhat related issue https://github.com/kokkos/mdspan/issues/63 .

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the mdspan.submdspan section in P0009r12 and compare the related discussion in issue #63. Determine the intended element type and accessor template parameters for the returned mdspan, then clarify the specification with a precise return description; done when those parameters are unambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.