[llvm] [ADT] Implement EnumeratedArray with std::array (NFC) (PR #158407)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 13 12:12:59 PDT 2025


kuhar wrote:

> > Nice. I think the side-effect is that this now allows for 0-sized arrays. Could we add a test for this?
> 
> @kuhar I added `static_assert` to disallow 0-sized arrays.

Why not allow them?

https://github.com/llvm/llvm-project/pull/158407


More information about the llvm-commits mailing list