fix: de golmon

This commit is contained in:
Camille Chauvet 2023-10-05 10:49:35 +00:00
parent e5bcc44b2e
commit 4e239c6091

View File

@ -39,7 +39,7 @@ class Array
return *this; return *this;
delete[] this->_arr; delete[] this->_arr;
this->_size = src._size; this->_size = src._size;
new T[src._size]; this->_arr = new T[src._size];
for (size_t i = 0; i < src._size; i++) for (size_t i = 0; i < src._size; i++)
this->_arr[i] = src._arr[i]; this->_arr[i] = src._arr[i];
return *this; return *this;