Library 5

This commit is contained in:
Alessandro Ferro
2021-06-09 12:11:53 +02:00
parent 084a2df94e
commit ed5f80bb78
7 changed files with 12 additions and 11 deletions

View File

@ -465,8 +465,8 @@ BTInOrderIterator<Data>::BTInOrderIterator(const BTInOrderIterator& itr){
template <typename Data>
BTInOrderIterator<Data>::BTInOrderIterator(BTInOrderIterator&& toMove) noexcept{
std::move(curr, toMove.curr);
std::move(stack, toMove.stack);
std::swap(curr, toMove.curr);
std::swap(stack, toMove.stack);
}
template <typename Data>
@ -484,8 +484,8 @@ BTInOrderIterator<Data>& BTInOrderIterator<Data>::operator=(const BTInOrderItera
template <typename Data>
BTInOrderIterator<Data>& BTInOrderIterator<Data>::operator=(BTInOrderIterator&& toMove) noexcept{
std::move(curr, toMove.curr);
std::move(stack, toMove.stack);
std::swap(curr, toMove.curr);
std::swap(stack, toMove.stack);
return *this;
}