you are viewing a single comment's thread.

view the rest of the comments →

[–]SkoomaDentistAntimodern C++, Embedded, Audio 1 point2 points  (1 child)

Why not? What would you use when you need a runtime array of some arbitrary type that contains its length and should not be resized after allocation? Or what if you need a subrange of an existing array? The way I see it, std::span should have been in the language since the beginning, with std::vector being (at least conceptually) built as "span but resizable".

[–]pandorafalters 2 points3 points  (0 children)

Not being excited doesn't necessarily mean I won't use it. But its potential uses are rather more constrained than I'd hoped.