[libcxx-commits] [libcxx] [libcxx][string] Allow fancy pointers in basic_string (PR #199264)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 5 02:30:37 PDT 2026


================
@@ -878,16 +880,91 @@ private:
 
   static_assert(sizeof(__short) == (sizeof(value_type) * (__min_cap + 1)), "__short has an unexpected size.");
 
-  union __rep {
+  template <typename _LongT, typename = void>
----------------
frederick-vs-ja wrote:

I think we conventionally use `class` to introduce type template parameters in produce code. Ditto below.
```suggestion
  template <class _LongT, class = void>
```

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


More information about the libcxx-commits mailing list