diff --git a/source/build/include/linklist.h b/source/build/include/linklist.h index 2cbb7537b..4ef968d05 100644 --- a/source/build/include/linklist.h +++ b/source/build/include/linklist.h @@ -5,14 +5,14 @@ namespace LL { -template FORCE_INLINE CONSTEXPR void Reset(T const node) { node->next = node->prev = node; } -template FORCE_INLINE CONSTEXPR void Unlink(T const node) +template FORCE_INLINE CONSTEXPR_CXX14 void Reset(T const node) { node->next = node->prev = node; } +template FORCE_INLINE CONSTEXPR_CXX14 void Unlink(T const node) { node->prev->next = node->next; node->next->prev = node->prev; } -template FORCE_INLINE CONSTEXPR void Insert(T const root, T const node) +template FORCE_INLINE CONSTEXPR_CXX14 void Insert(T const root, T const node) { node->next = root; node->prev = root->prev; @@ -20,19 +20,19 @@ template FORCE_INLINE CONSTEXPR void Insert(T const root, T const n root->prev = node; } -template FORCE_INLINE CONSTEXPR void Remove(T const node) +template FORCE_INLINE CONSTEXPR_CXX14 void Remove(T const node) { Unlink(node); Reset(node); } -template FORCE_INLINE CONSTEXPR void Move(T const node, T const root) +template FORCE_INLINE CONSTEXPR_CXX14 void Move(T const node, T const root) { Unlink(node); Insert(root, node); } -template FORCE_INLINE CONSTEXPR void SortedInsert(T const root, T const node, Tt remove_pointer_t::*m) +template FORCE_INLINE CONSTEXPR_CXX14 void SortedInsert(T const root, T const node, Tt remove_pointer_t::*m) { T best = root->next; while ((best != root) && (node->*m > best->*m))