1
0
Fork 0

Ex6.2 feedback: forgot to copy _default in Array copy ctor.

This commit is contained in:
Eric Teunis de Boone 2020-07-01 17:47:24 +02:00
parent 969ee37aa8
commit 5ac86eccb3
1 changed files with 1 additions and 0 deletions

View File

@ -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++) {