[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
Mon Jun 22 08:26:33 PDT 2026
================
@@ -67,7 +67,10 @@ TEST_CONSTEXPR_CXX20 void test2() {
assert(s.data());
assert(s.size() == 0);
assert(s.capacity() >= s.size());
- assert(s.get_allocator() == typename S::allocator_type());
+# if TEST_STD_VER >= 11
----------------
kitsnet wrote:
Ah, the whole `test2()` is under `#if TEST_STD_VER >= 11`. Yes, we can remove these checks inside it.
https://github.com/llvm/llvm-project/pull/195839
More information about the libcxx-commits
mailing list