From 7720544e07324de749b9f9fb6bb6d0d922af20eb Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 26 Jul 2024 21:25:40 +0100 Subject: NodeAllocator has default constructor capacity at 0 by default, because it screws with usage of size later. --- src/numerics.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/numerics.hpp') diff --git a/src/numerics.hpp b/src/numerics.hpp index ac22ff4..d437cab 100644 --- a/src/numerics.hpp +++ b/src/numerics.hpp @@ -52,7 +52,7 @@ struct NodeAllocator { std::vector vec; - NodeAllocator(word_t capacity); + NodeAllocator(word_t capacity = 0); word_t alloc(Node n); Node getVal(word_t n) const; Node &getRef(word_t n); -- cgit v1.2.3-13-gbd6f