HeapArray: Fix assignment/move with aligned variant

This commit is contained in:
Stenzek 2024-11-05 17:53:42 +10:00
parent 2044e35377
commit 65f3dcbe9b
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ public:
using const_reference = const T&;
using pointer = T*;
using const_pointer = const T*;
using this_type = FixedHeapArray<T, SIZE>;
using this_type = FixedHeapArray<T, SIZE, ALIGNMENT>;
FixedHeapArray() { allocate(); }
@ -164,7 +164,7 @@ public:
using const_reference = const T&;
using pointer = T*;
using const_pointer = const T*;
using this_type = DynamicHeapArray<T>;
using this_type = DynamicHeapArray<T, alignment>;
DynamicHeapArray() : m_data(nullptr), m_size(0) {}
DynamicHeapArray(size_t size) { internal_resize(size, nullptr, 0); }