fix compiler error for fixed array list copy ctor
This commit is contained in:
parent
177c39dd53
commit
194b3e100a
@ -20,7 +20,9 @@ class FixedArrayList : public ArrayList<T, count_t> {
|
|||||||
FixedArrayList() : ArrayList<T, count_t>(data, MAX_SIZE) {}
|
FixedArrayList() : ArrayList<T, count_t>(data, MAX_SIZE) {}
|
||||||
|
|
||||||
FixedArrayList(const FixedArrayList& other) : ArrayList<T, count_t>(data, MAX_SIZE) {
|
FixedArrayList(const FixedArrayList& other) : ArrayList<T, count_t>(data, MAX_SIZE) {
|
||||||
memcpy(this->data, other.data, sizeof(this->data));
|
for (size_t idx = 0; idx < sizeof(data); idx++) {
|
||||||
|
data[idx] = other.data[idx];
|
||||||
|
}
|
||||||
this->entries = data;
|
this->entries = data;
|
||||||
this->size = other.size;
|
this->size = other.size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user