I've got an std::array<std::shared_ptr<void>, N>
, and I have methods for accessing parts of this buffer as different types, which I would like to use std::span<std::shared_ptr<T>>
for.
Is there a way to construct a span like this without invoking UB?