On Thu, 12 Dec 2024 at 00:05, Jonathan Wakely wrote:
>
> Any std::span constructor with a runtime length has a precondition
> that the length is equal to N (except when N == std::dynamic_extent).
>
> Currently every constructor with a runtime length does:
>
> if constexpr (extent != dynamic_extent
Any std::span constructor with a runtime length has a precondition
that the length is equal to N (except when N == std::dynamic_extent).
Currently every constructor with a runtime length does:
if constexpr (extent != dynamic_extent)
__glibcxx_assert(n == extent);
We can move those assertions i