Getting on my #cplusplus bullshit for a moment.
std::span should be templated on <typename ElementType, typename ExtentType>, not <typename ElementType, std::size_t Extent>.
I should be able to customize my extent types arbitrarily.
I could see something where I want a span to be limited to a byte size, not an element count. At least, I think I could.
@StephanTLavavej At this point I'm just tagging people associated with the span proposals.
-
-
Too much complexity; strongly opposed. If you want to write a constexpr function to calculate that, possibly with an alias template for convenience, go ahead. But resist the temptation to add complexity to an interface for a very niche use case.
-
I don’t understand how it is more complex. As long as it matches an ExtentType concept, the complexity is all the same for the implementor. It could even be a basic_span, and then span would be a basic_span<ElementType, std::default_extent<Extent>>.
Keskustelun loppu
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.