From 8315f991a64a2730693ff315f0b4c80b589a32f0 Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Wed, 13 Apr 2005 15:22:32 -0400
Subject: [PATCH] COMP: Fix for Sun CC stl allocator signature of allocate
 method.

---
 hashtable.hxx.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hashtable.hxx.in b/hashtable.hxx.in
index 3c49af70..5adf715d 100644
--- a/hashtable.hxx.in
+++ b/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
       {
-- 
GitLab