summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/kwsys/hashtable.hxx.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in
index d7d510c..a8cf6c7 100644
--- a/Source/kwsys/hashtable.hxx.in
+++ b/Source/kwsys/hashtable.hxx.in
@@ -101,7 +101,11 @@ public:
{
if(n)
{
- return static_cast<pointer>(static_cast<void*>(alloc_.allocate(n*chunk(), hint)));
+ typedef kwsys_stl::allocator<void>::pointer void_pointer;
+ return
+ static_cast<pointer>(
+ static_cast<void*>(
+ alloc_.allocate(n*chunk(), const_cast<void_pointer>(hint))));
}
else
{