[libcxx-commits] [PATCH] D125496: [libc++] Simplify the string structures a bit more

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 20 01:20:01 PDT 2022


philnik marked an inline comment as done.
philnik added inline comments.


================
Comment at: libcxx/include/string:740
+        size_type __size_ : 7;
+        char __padding_[sizeof(value_type) - 1];
         value_type __data_[__min_cap];
----------------
hubert.reinterpretcast wrote:
> Is it really okay if the expression evaluates to zero?
Clang and GCC allow arrays with zero size. https://godbolt.org/z/ddPMThYMz


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125496/new/

https://reviews.llvm.org/D125496



More information about the libcxx-commits mailing list