Skip to content

Commit ce082a3

Browse files
map.modifiers/erase_key.pass.cpp
1 parent e2938a5 commit ce082a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libcxx/include/__tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,10 +2266,10 @@ typename __tree<_Tp, _Compare, _Allocator>::iterator _LIBCPP_CONSTEXPR_SINCE_CXX
22662266
__tree<_Tp, _Compare, _Allocator>::__lower_bound(const _Key& __v, __node_pointer __root, __end_node_pointer __result) {
22672267
while (__root != nullptr) {
22682268
if (!value_comp()(__root->__value_, __v)) {
2269-
__result = static_cast<__end_node_pointer>(__root);
2270-
__root = static_cast<__node_pointer>(__root->__left_);
2269+
__result = std::__static_fancy_pointer_cast<__end_node_pointer>(__root);
2270+
__root = std::__static_fancy_pointer_cast<__node_pointer>(__root->__left_);
22712271
} else
2272-
__root = static_cast<__node_pointer>(__root->__right_);
2272+
__root = std::__static_fancy_pointer_cast<__node_pointer>(__root->__right_);
22732273
}
22742274
return iterator(__result);
22752275
}

0 commit comments

Comments
 (0)