[libcxx-commits] [libcxx] [libcxx][string] Test: default constructed allocators can be unequal (PR #195839)
Nikita Belenkiy via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jun 20 03:40:54 PDT 2026
================
@@ -36,7 +36,7 @@ TEST_CONSTEXPR_CXX20 void test(It first, It last) {
++it;
++i;
}
- assert(s2.get_allocator() == Alloc());
----------------
kitsnet wrote:
I don't know if there is any particular language requirement for this test, but it technically tests that all _default constructed_ allocators of this type share the same state. Which is not required by the standard, but was true so far for all test allocators before introduction of fancy_pointer_allocator.
https://github.com/llvm/llvm-project/pull/195839
More information about the libcxx-commits
mailing list