Commit a3635d0b authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Include gt_hash_map::resize if sparsehash is disabled

parent 11c15b0b
...@@ -203,6 +203,11 @@ public: ...@@ -203,6 +203,11 @@ public:
#else #else
: base_t(il, n, hf, eql, alloc) { } : base_t(il, n, hf, eql, alloc) { }
#endif #endif
#ifndef HAVE_SPARSEHASH
void resize(size_t n) { base_t::reserve(n); }
#endif
}; };
template<class Key, template<class Key,
...@@ -270,6 +275,11 @@ public: ...@@ -270,6 +275,11 @@ public:
#else #else
: base_t(il, n, hf, eql, alloc) { } : base_t(il, n, hf, eql, alloc) { }
#endif #endif
#ifndef HAVE_SPARSEHASH
void resize(size_t n) { base_t::reserve(n); }
#endif
}; };
......
Supports Markdown
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