소스 검색

base: fix a data loss bug in the avl_tree copy constructor.

undefined
Sam Hocevar 10 년 전
부모
커밋
7cc072d1be
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. +6
    -3
      src/lol/base/avl_tree.h

+ 6
- 3
src/lol/base/avl_tree.h 파일 보기

@@ -39,10 +39,13 @@ public:

avl_tree & operator=(avl_tree const & other)
{
clear();
if (&other != this)
{
clear();

for (auto it : other)
insert(it.key, it.value);
for (auto it : other)
insert(it.key, it.value);
}

return *this;
}


불러오는 중...
취소
저장