diff --git a/luna/include/luna/LinkedList.h b/luna/include/luna/LinkedList.h index 47a07cbf..80c9b240 100644 --- a/luna/include/luna/LinkedList.h +++ b/luna/include/luna/LinkedList.h @@ -1,5 +1,6 @@ #pragma once #include +#include template inline Option nonnull_or_error(T* ptr) { @@ -57,6 +58,8 @@ template class DoublyLinkedList { using Node = DoublyLinkedListNode; + static_assert(IsBaseOf, T>); + public: void append(T* ptr) {