From 5bebcea6e74c932856510bfe054aceee1ebb8f9b Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 13 Apr 2005 15:22:32 -0400 Subject: [PATCH] COMP: Fix for Sun CC stl allocator signature of allocate method. --- Source/kwsys/hashtable.hxx.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in index d7d510c9c..a8cf6c778 100644 --- a/Source/kwsys/hashtable.hxx.in +++ b/Source/kwsys/hashtable.hxx.in @@ -101,7 +101,11 @@ public: { if(n) { - return static_cast(static_cast(alloc_.allocate(n*chunk(), hint))); + typedef kwsys_stl::allocator::pointer void_pointer; + return + static_cast( + static_cast( + alloc_.allocate(n*chunk(), const_cast(hint)))); } else {