17 Jun
2019
17 Jun
'19
12:24 p.m.
Save yourself the trouble and just fork and maintain https://github.com/tcbrindle/span . It's already released under BSL-1.0, so no problems there either. Then there's another one, https://github.com/martinmoene/span-lite, equally BSL-1.0. It appears std::mdspan is slightly more of a challenge.
+1. They're Boost licensed, and Boost friendly authors to boot. I personally use span-lite. It works well on C++ 98, incidentally. In any case, implementation is easy, it'll be the documentation which is hard, as always. Niall