kokkos / mdspan

Reference implementation of mdspan targeting C++23
Other
398 stars 65 forks source link

Avoid use of zero-length carray #336

Closed crtrott closed 2 months ago

crtrott commented 2 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.