Skip to content

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Oct 23, 2025

Problem:

  • ct_capacity_v<span<int>> returns its capacity as the maximum value of std::size_t, which is wrong.

Solution:

  • Make ct_capacity_v a compile-time error when called on a dynamic stdx::span. (Just like on a dynamic std::span). These things don't have compile-time capacities; they are dynamic.

Problem:
- `ct_capacity_v<span<int>>` returns its capacity as the maximum value of
  `std::size_t`, which is wrong.

Solution:
- Make `ct_capacity_v` a compile-time error when called on a dynamic
  `stdx::span`. (Just like on a dynamic `std::span`). These things don't have
  compile-time capacities; they are dynamic.
@lukevalenty lukevalenty merged commit def2a22 into intel:main Oct 23, 2025
50 checks passed
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.

3 participants