Skip to content

Commit 16828a5

Browse files
map.cons/assign_initializer_list.pass.cpp
1 parent 0790081 commit 16828a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ __tree<_Tp, _Compare, _Allocator>::__tree(const value_compare& __comp, const all
13551355
template <class _Tp, class _Compare, class _Allocator>
13561356
_LIBCPP_CONSTEXPR_SINCE_CXX26 typename __tree<_Tp, _Compare, _Allocator>::__node_pointer
13571357
__tree<_Tp, _Compare, _Allocator>::_DetachedTreeCache::__detach_from_tree(__tree* __t) _NOEXCEPT {
1358-
__node_pointer __cache = static_cast<__node_pointer>(__t->__begin_node());
1358+
__node_pointer __cache = std::__static_fancy_pointer_cast<__node_pointer>(__t->__begin_node());
13591359
__t->__begin_node() = __t->__end_node();
13601360
__t->__end_node()->__left_->__parent_ = nullptr;
13611361
__t->__end_node()->__left_ = nullptr;
@@ -2003,7 +2003,7 @@ __tree<_Tp, _Compare, _Allocator>::__node_assign_unique(const value_type& __v, _
20032003
bool __inserted = false;
20042004
if (__child == nullptr) {
20052005
__assign_value(__nd->__value_, __v);
2006-
__insert_node_at(__parent, __child, static_cast<__node_base_pointer>(__nd));
2006+
__insert_node_at(__parent, __child, std::__static_fancy_pointer_cast<__node_base_pointer>(__nd));
20072007
__r = __nd;
20082008
__inserted = true;
20092009
}

0 commit comments

Comments
 (0)