HeapArray: Fix assignment/move with aligned variant
This commit is contained in:
parent
2044e35377
commit
65f3dcbe9b
|
@ -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); }
|
||||
|
|
Loading…
Reference in New Issue