소스 검색

fix(rbtree): propagate... of allocator

greatbridf 1 년 전
부모
커밋
ae07552418
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      gblibstdc++/include/bits/rbtree

+ 4 - 2
gblibstdc++/include/bits/rbtree

@@ -362,7 +362,8 @@ public:
         destroy(root);
 
         comp = other.comp;
-        if constexpr (node_alloc_traits::propagate_on_copy_assignment::value)
+        if constexpr (node_alloc_traits::
+            propagate_on_container_copy_assignment::value)
             alloc = other.alloc;
 
         root = copy(other.root);
@@ -376,7 +377,8 @@ public:
         root = std::exchange(other.root, nullptr);
         _size = std::exchange(other._size, 0);
         comp = std::move(other.comp);
-        if constexpr (node_alloc_traits::propagate_on_move_assignment::value)
+        if constexpr (node_alloc_traits::
+            propagate_on_container_move_assignment::value)
             alloc = std::move(other.alloc);
     }