Skip to content

Commit 2a0d7f8

Browse files
authored
[libc++][C++03] cherry-pick #119801 (#158247)
1 parent fea44af commit 2a0d7f8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

libcxx/include/__cxx03/vector

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ vector<bool, _Allocator>::__recommend(size_type __new_size) const {
18911891
const size_type __cap = capacity();
18921892
if (__cap >= __ms / 2)
18931893
return __ms;
1894-
return std::max(2 * __cap, __align_it(__new_size));
1894+
return std::max<size_type>(2 * __cap, __align_it(__new_size));
18951895
}
18961896

18971897
// Default constructs __n objects starting at __end_

libcxx/test/std/containers/sequences/vector.bool/small_allocator_size.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
// <vector>
1010
// vector<bool>
1111

12-
// XFAIL: FROZEN-CXX03-HEADERS-FIXME
13-
1412
// This test ensures that std::vector<bool> handles allocator types with small size types
1513
// properly. Related issue: https://llvm.org/PR121713.
1614

0 commit comments

Comments
 (0)