[libcxx-commits] [libcxx] [libc++] Move allocator assertion into allocator_traits (PR #94750)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jun 22 03:05:09 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;};
----------------
huixie90 wrote:
Anyway this test has been reverted . but arguably the test is incorrect. as stated in all the static_assert in our containers. rebind<Alloc::value_type>::type should be the same as Alloc and these tests are not correct.
https://github.com/llvm/llvm-project/pull/94750
More information about the libcxx-commits
mailing list