Skip to content
Snippets Groups Projects
Commit afd0fd0c authored by Brad King's avatar Brad King
Browse files

BUG: When constructing the bucket vector type the allocator given must have...

BUG: When constructing the bucket vector type the allocator given must have been rebound to _Node* already because GCC 3.4's vector type does not rebind it.
parent 21be9881
No related branches found
No related tags found
No related merge requests found
......@@ -292,7 +292,8 @@ public:
allocator_type get_allocator() const { return _M_node_allocator; }
private:
typedef typename _Alloc::template rebind<_Node>::other _M_node_allocator_type;
typedef kwsys_stl::vector<_Node*,_Alloc> _M_buckets_type;
typedef typename _Alloc::template rebind<_Node*>::other _M_node_ptr_allocator_type;
typedef kwsys_stl::vector<_Node*,_M_node_ptr_allocator_type> _M_buckets_type;
#else
public:
typedef hash_allocator<_Val, _Alloc> allocator_type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment