We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51cb5e2 commit 446a15aCopy full SHA for 446a15a
libcxx/include/__tree
@@ -1076,11 +1076,13 @@ public:
1076
// __node_traits::construct(__na, std::addressof(__lhs), std::move(__tmp));
1077
key_type __kk;
1078
// new (std::addressof(__kk))(key_type)(__value.first);
1079
+ // todo: this is wrong
1080
__node_traits::construct(__na, std::addressof(__kk), std::move(__value.first));
1081
// __node_holder __h = __construct_node(std::forward<_Args>(__args)...);?
1082
// __node_holder __h = __construct_node(__value);?
1083
__emplace_hint_unique(__p, std::move(__kk), std::move(__value.second));
- } else {
1084
+ } else
1085
+ {
1086
__emplace_hint_unique(__p, const_cast<key_type&&>(__value.first), std::move(__value.second));
1087
}
1088
0 commit comments