aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-07-26 21:25:40 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-07-26 21:25:40 +0100
commit7720544e07324de749b9f9fb6bb6d0d922af20eb (patch)
tree818689700d6f5c13f58703db653b7e6de5a46d6e
parent0eaa851114ae2d2a0bbd26e8905dcacf6e6a9ce6 (diff)
downloadcw_tree-7720544e07324de749b9f9fb6bb6d0d922af20eb.tar.gz
cw_tree-7720544e07324de749b9f9fb6bb6d0d922af20eb.tar.bz2
cw_tree-7720544e07324de749b9f9fb6bb6d0d922af20eb.zip
NodeAllocator has default constructor
capacity at 0 by default, because it screws with usage of size later.
-rw-r--r--src/numerics.hpp2
1 files changed, 1 insertions, 1 deletions
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<Node> 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);