mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-08 04:25:37 +00:00
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 const_reference = const T&;
|
||||||
using pointer = T*;
|
using pointer = T*;
|
||||||
using const_pointer = const T*;
|
using const_pointer = const T*;
|
||||||
using this_type = FixedHeapArray<T, SIZE>;
|
using this_type = FixedHeapArray<T, SIZE, ALIGNMENT>;
|
||||||
|
|
||||||
FixedHeapArray() { allocate(); }
|
FixedHeapArray() { allocate(); }
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ public:
|
|||||||
using const_reference = const T&;
|
using const_reference = const T&;
|
||||||
using pointer = T*;
|
using pointer = T*;
|
||||||
using const_pointer = const 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() : m_data(nullptr), m_size(0) {}
|
||||||
DynamicHeapArray(size_t size) { internal_resize(size, nullptr, 0); }
|
DynamicHeapArray(size_t size) { internal_resize(size, nullptr, 0); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user