You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG/FEA]: cuda::compute_capability is not a structural type #8730
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
miscco commentedon Apr 29, 2026
Yeah I am fully in favor