[libcxx-commits] [libcxx] [libc++][string] Remove potential non-trailing 0-length array (PR #105865)
    Nikolas Klauser via libcxx-commits 
    libcxx-commits at lists.llvm.org
       
    Sun Sep  8 06:33:26 PDT 2024
    
    
  
================
@@ -749,6 +749,32 @@ struct __can_be_converted_to_string_view
 struct __uninitialized_size_tag {};
 struct __init_with_sentinel_tag {};
 
+template <size_t _PaddingSize>
+struct __padding {
+  char __padding_[_PaddingSize];
+};
+
+template <>
+struct __padding<0> {};
+
+template <class _CharT, size_t __min_cap, size_t _Padding = sizeof(_CharT) - 1>
----------------
philnik777 wrote:
This shouldn't be required to be a template anymore.
https://github.com/llvm/llvm-project/pull/105865
    
    
More information about the libcxx-commits
mailing list