Library 3

This commit is contained in:
Alessandro Ferro
2021-06-09 11:55:47 +02:00
parent 2161904478
commit 4d17a3c835
7 changed files with 12 additions and 11 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;
}