From 5ac86eccb33ccc86f7af2c9a1e0964f4db4a8584 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Wed, 1 Jul 2020 17:47:24 +0200 Subject: [PATCH] Ex6.2 feedback: forgot to copy _default in Array copy ctor. --- ex6.2/Array.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/ex6.2/Array.hh b/ex6.2/Array.hh index 84bab41..d1a5eec 100644 --- a/ex6.2/Array.hh +++ b/ex6.2/Array.hh @@ -11,6 +11,7 @@ public: Array(const Array& other) : _size(other._size) { _arr = new T[other._size] ; + _default = other._default; // Copy elements for (int i=0 ; i<_size ; i++) {