Skip to content

Commit

Permalink
HeapArray: Fix assignment/move with aligned variant
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Nov 5, 2024
1 parent 2044e35 commit 65f3dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/heap_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FixedHeapArray
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(); }

Expand Down Expand Up @@ -164,7 +164,7 @@ class DynamicHeapArray
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); }
Expand Down

0 comments on commit 65f3dcb

Please sign in to comment.