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.

This commit is contained in:
Brad King 2005-04-13 15:04:39 -04:00
parent 925743e1e7
commit 81f7bc9cdb
1 changed files with 2 additions and 1 deletions

View File

@ -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;