Skip to content

[BUG/FEA]: cuda::compute_capability is not a structural type #8730

Closed

Description

@bernhardmgruber

We cannot pass cuda::compute_capability as a template parameter in C+++20 because the type is not a structural type. This is unfortunate, because that type is conceptually a strongly typed int. The only thing preventing it from being structural is that the int __cc_; data member is private.

I propose to make the data member public. Given the prefix __ it is still an implementation detail from a user's perspective. This is also what std::array does, which has a public member array that is an implementation detail.

Activity

  1. miscco commented on Apr 29, 2026

    @miscco
    Contributor

    Yeah I am fully in favor

  2. moved this from Todo to In Progress in CCCLon May 7, 2026
  3. moved this from In Progress to In Review in CCCLon May 7, 2026
  4. self-assigned this
    on May 7, 2026
  5. moved this from In Review to Done in CCCLon May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions