[libcxx-commits] [libcxx] [libc++] Move allocator assertion into allocator_traits (PR #94750)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 19 13:15:29 PDT 2024


================
@@ -28,7 +28,7 @@ struct A
 {
     typedef T value_type;
 
-    template <class U> struct rebind {typedef ReboundA<U> other;};
+    template <class U> struct rebind {typedef A<U> other;};
----------------
EricWF wrote:

I think the point of this test is to check that the rebind template is actually used, vs having the generic implementation apply the rebinding.

The top test no longer establishes that as far as I can tell.
The bottom may still do that, but it's less  clear.


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


More information about the libcxx-commits mailing list