kokkos / mdspan

Reference implementation of mdspan targeting C++23
Other
413 stars 69 forks source link

Avoid use of zero-length carray #336

Closed crtrott closed 5 months ago

crtrott commented 5 months ago

When compiling with pedantic there are various issues with the use of zero-length c-arrays. This PR is the result of my efforts to resolve this issue for all compilers in all C++ standard modes. In some combinations only some of the changes are needed, but to resolve all of them I needed all the changes presented here.