Commit a3635d0b authored by Tiago Peixoto's avatar Tiago Peixoto

Include gt_hash_map::resize if sparsehash is disabled

parent 11c15b0b
......@@ -203,6 +203,11 @@ public:
#else
: base_t(il, n, hf, eql, alloc) { }
#endif
#ifndef HAVE_SPARSEHASH
void resize(size_t n) { base_t::reserve(n); }
#endif
};
template<class Key,
......@@ -270,6 +275,11 @@ public:
#else
: base_t(il, n, hf, eql, alloc) { }
#endif
#ifndef HAVE_SPARSEHASH
void resize(size_t n) { base_t::reserve(n); }
#endif
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment