diff --git a/src/snmalloc/ds_core/seqset.h b/src/snmalloc/ds_core/seqset.h index 600ec07df..e493fbba0 100644 --- a/src/snmalloc/ds_core/seqset.h +++ b/src/snmalloc/ds_core/seqset.h @@ -34,6 +34,9 @@ namespace snmalloc constexpr Node(Node* next, Node* prev) : next(next), prev(prev) {} public: + /// Default constructor, creates an invalid node. + constexpr Node() : Node(nullptr, nullptr) {} + void invariant() { SNMALLOC_ASSERT(next != nullptr);