Fixed copying of FixedArrayList

This commit is contained in:
Steffen Gaisser 2020-09-30 13:05:55 +02:00
parent ecc4bdf11a
commit 8d8e918aeb

View File

@ -20,11 +20,13 @@ public:
ArrayList<T, count_t>(data, MAX_SIZE) {
memcpy(this->data, other.data, sizeof(this->data));
this->entries = data;
this->size = other.size;
}
FixedArrayList& operator=(FixedArrayList other) {
memcpy(this->data, other.data, sizeof(this->data));
this->entries = data;
this->size = other.size;
return *this;
}