summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/hashtable.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-13 19:04:39 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-13 19:04:39 (GMT)
commit81f7bc9cdbc22350c69b32a3621853b1472d9439 (patch)
tree97fddc54fafcfda9a679b016ca7771badb45402a /Source/kwsys/hashtable.hxx.in
parent925743e1e7fd2054022dc92400dcab2907c71dc7 (diff)
downloadCMake-81f7bc9cdbc22350c69b32a3621853b1472d9439.zip
CMake-81f7bc9cdbc22350c69b32a3621853b1472d9439.tar.gz
CMake-81f7bc9cdbc22350c69b32a3621853b1472d9439.tar.bz2
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.
Diffstat (limited to 'Source/kwsys/hashtable.hxx.in')
-rw-r--r--Source/kwsys/hashtable.hxx.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in
index f4d0eaf..d7d510c 100644
--- a/Source/kwsys/hashtable.hxx.in
+++ b/Source/kwsys/hashtable.hxx.in
@@ -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;