Structured binding for fixed-size span
After finding out you can ergonomically convert std::vectors into fix-sized std::spans, I thought I’d try out structured bindings for std::vector: auto _ = std::vector{ 1,2,3 }; std::span<int, 3> a = std::span(_).first<3>(); auto [b,c,d] = a; But it’s not working https://godbolt.org/z/nhrYn65dW However, it seems from P1024 Usability Enhancements for std::span which was accepted that this should… Read More Structured binding for fixed-size span