Skip to content

Commit

Permalink
🔨 Fix copy ctor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alinshans committed Aug 23, 2017
1 parent f12ba77 commit 6aac0c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MyTinySTL/deque.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ class deque

deque(const deque& rhs)
{
map_init(rhs.size());
mystl::uninitialized_copy(rhs.begin_, rhs.end_, begin_);
copy_init(rhs.begin(), rhs.end(), mystl::forward_iterator_tag());
}
deque(deque&& rhs) noexcept
:begin_(mystl::move(rhs.begin_)),
Expand Down

0 comments on commit 6aac0c4

Please sign in to comment.