Skip to content

Commit 1c46326

Browse files
failures at move_alloc and move_assign
1 parent a5d575d commit 1c46326

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

libcxx/include/__tree

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,15 +1027,9 @@ public:
10271027
__insert_unique_from_orphaned_node(const_iterator __p, __get_node_value_type_t<_Tp>&& __value) {
10281028
// fails here for move_alloc.pass.cpp
10291029
if (__libcpp_is_constant_evaluated()) {
1030-
__node_allocator& __na = __value.__node_alloc();
1031-
// __node_traits::destroy(__na, std::addressof(__lhs));
1032-
// __node_traits::construct(__na, std::addressof(__lhs), std::move(__tmp));
1030+
__node_allocator& __na = __node_alloc();
10331031
key_type __kk;
1034-
// new (std::addressof(__kk))(key_type)(__value.first);
1035-
// todo: this is wrong
10361032
__node_traits::construct(__na, std::addressof(__kk), std::move(__value.first));
1037-
// __node_holder __h = __construct_node(std::forward<_Args>(__args)...);?
1038-
// __node_holder __h = __construct_node(__value);?
10391033
__emplace_hint_unique(__p, std::move(__kk), std::move(__value.second));
10401034
} else
10411035
{

0 commit comments

Comments
 (0)