Skip to content

Commit 446a15a

Browse files
TODO
1 parent 51cb5e2 commit 446a15a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libcxx/include/__tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,11 +1076,13 @@ public:
10761076
// __node_traits::construct(__na, std::addressof(__lhs), std::move(__tmp));
10771077
key_type __kk;
10781078
// new (std::addressof(__kk))(key_type)(__value.first);
1079+
// todo: this is wrong
10791080
__node_traits::construct(__na, std::addressof(__kk), std::move(__value.first));
10801081
// __node_holder __h = __construct_node(std::forward<_Args>(__args)...);?
10811082
// __node_holder __h = __construct_node(__value);?
10821083
__emplace_hint_unique(__p, std::move(__kk), std::move(__value.second));
1083-
} else {
1084+
} else
1085+
{
10841086
__emplace_hint_unique(__p, const_cast<key_type&&>(__value.first), std::move(__value.second));
10851087
}
10861088
}

0 commit comments

Comments
 (0)