Library 2

This commit is contained in:
Alessandro Ferro
2021-06-09 09:31:27 +02:00
parent 05da596510
commit 2161904478
4 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,7 @@ StackVec<Data>& StackVec<Data>::operator=(const StackVec<Data>& copyFrom){
template <typename Data>
StackVec<Data>& StackVec<Data>::operator=(StackVec<Data>&& moveFrom) noexcept{
Vector<Data>::operator=(std::move(moveFrom));
stackSize = moveFrom.Size();
std::swap(stackSize, moveFrom.stackSize);
return *this;
}