Skip to content

Commit 3acdf24

Browse files
committed
Minor refactor to previous commit
1 parent 81f26c8 commit 3acdf24

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/nbl/core/containers/DoublyLinkedList.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ class DoublyLinkedList
8484
using value_t = Value;
8585
using disposal_func_t = std::function<void(value_t&)>;
8686

87-
static constexpr bool IsTriviallyCopyable = std::is_trivially_copyable_v<Value>;
88-
8987
_NBL_STATIC_INLINE_CONSTEXPR uint32_t invalid_iterator = node_t::invalid_iterator;
9088

9189
// get the fixed capacity
@@ -262,7 +260,7 @@ class DoublyLinkedList
262260
// Offset the array start by the storage used by the address allocator
263261
m_array = reinterpret_cast<node_t*>(reinterpret_cast<uint8_t*>(m_reservedSpace) + addressAllocatorStorageSize * sizeof(node_t));
264262

265-
if constexpr (IsTriviallyCopyable)
263+
if constexpr (std::is_trivially_copyable_v<Value>)
266264
{
267265
// Create new address allocator by copying state
268266
m_addressAllocator = address_allocator_t(m_cap, other.m_addressAllocator, m_reservedSpace);

0 commit comments

Comments
 (0)