diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in index d7d510c9c7..a8cf6c7781 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 {