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

@ -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;
}