File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
include/nbl/core/containers Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,6 @@ class DoublyLinkedList
84
84
using value_t = Value;
85
85
using disposal_func_t = std::function<void (value_t &)>;
86
86
87
- static constexpr bool IsTriviallyCopyable = std::is_trivially_copyable_v<Value>;
88
-
89
87
_NBL_STATIC_INLINE_CONSTEXPR uint32_t invalid_iterator = node_t ::invalid_iterator;
90
88
91
89
// get the fixed capacity
@@ -262,7 +260,7 @@ class DoublyLinkedList
262
260
// Offset the array start by the storage used by the address allocator
263
261
m_array = reinterpret_cast <node_t *>(reinterpret_cast <uint8_t *>(m_reservedSpace) + addressAllocatorStorageSize * sizeof (node_t ));
264
262
265
- if constexpr (IsTriviallyCopyable )
263
+ if constexpr (std::is_trivially_copyable_v<Value> )
266
264
{
267
265
// Create new address allocator by copying state
268
266
m_addressAllocator = address_allocator_t (m_cap, other.m_addressAllocator , m_reservedSpace);
You can’t perform that action at this time.
0 commit comments