From 4e239c609175dc18763b0835977a6e01af13ac1d Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Thu, 5 Oct 2023 10:49:35 +0000 Subject: [PATCH] fix: de golmon --- ex02/src/Array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex02/src/Array.hpp b/ex02/src/Array.hpp index 58f1b7b..6fcb2f8 100644 --- a/ex02/src/Array.hpp +++ b/ex02/src/Array.hpp @@ -39,7 +39,7 @@ class Array return *this; delete[] this->_arr; this->_size = src._size; - new T[src._size]; + this->_arr = new T[src._size]; for (size_t i = 0; i < src._size; i++) this->_arr[i] = src._arr[i]; return *this;