[libcxx-commits] [libcxx] 2a0d7f8 - [libc++][C++03] cherry-pick #119801 (#158247)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 24 01:56:16 PDT 2025
Author: Nikolas Klauser
Date: 2025-09-24T10:56:12+02:00
New Revision: 2a0d7f8a83c81efae7e1d549d71faf9c660a28dd
URL: https://github.com/llvm/llvm-project/commit/2a0d7f8a83c81efae7e1d549d71faf9c660a28dd
DIFF: https://github.com/llvm/llvm-project/commit/2a0d7f8a83c81efae7e1d549d71faf9c660a28dd.diff
LOG: [libc++][C++03] cherry-pick #119801 (#158247)
Added:
Modified:
libcxx/include/__cxx03/vector
libcxx/test/std/containers/sequences/vector.bool/small_allocator_size.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/include/__cxx03/vector b/libcxx/include/__cxx03/vector
index 8192ffc1a0dae..4b62e0bf33c46 100644
--- a/libcxx/include/__cxx03/vector
+++ b/libcxx/include/__cxx03/vector
@@ -1891,7 +1891,7 @@ vector<bool, _Allocator>::__recommend(size_type __new_size) const {
const size_type __cap = capacity();
if (__cap >= __ms / 2)
return __ms;
- return std::max(2 * __cap, __align_it(__new_size));
+ return std::max<size_type>(2 * __cap, __align_it(__new_size));
}
// Default constructs __n objects starting at __end_
diff --git a/libcxx/test/std/containers/sequences/vector.bool/small_allocator_size.pass.cpp b/libcxx/test/std/containers/sequences/vector.bool/small_allocator_size.pass.cpp
index 0136fb0631604..7017351d47865 100644
--- a/libcxx/test/std/containers/sequences/vector.bool/small_allocator_size.pass.cpp
+++ b/libcxx/test/std/containers/sequences/vector.bool/small_allocator_size.pass.cpp
@@ -9,8 +9,6 @@
// <vector>
// vector<bool>
-// XFAIL: FROZEN-CXX03-HEADERS-FIXME
-
// This test ensures that std::vector<bool> handles allocator types with small size types
// properly. Related issue: https://llvm.org/PR121713.
More information about the libcxx-commits
mailing list