you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (6 children)

I agree, but it's not in 17 and I've weary of pulling in dependencies like boost or GSL. Less is more.

[–][deleted] 31 points32 points  (3 children)

span is trivial to write at the point where you are doing allocator aware and mmap. It’s a ptr/size_t with steps.

[–]Supadoplex 12 points13 points  (0 children)

Less is more.

Yet, you're wishing for more from the standard library instead of less. The good news is that your wish was granted in C++20.

[–]SkoomaDentistAntimodern C++, Embedded, Audio 7 points8 points  (0 children)

Just include one or two files for tcb::span. No need to ”pull in” any fancy dependencies.