summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/hashtable.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-13 19:22:32 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-13 19:22:32 (GMT)
commit5bebcea6e74c932856510bfe054aceee1ebb8f9b (patch)
tree15a7e227fcc7db525a85f3b6bd92a267c1c15955 /Source/kwsys/hashtable.hxx.in
parent81f7bc9cdbc22350c69b32a3621853b1472d9439 (diff)
downloadCMake-5bebcea6e74c932856510bfe054aceee1ebb8f9b.zip
CMake-5bebcea6e74c932856510bfe054aceee1ebb8f9b.tar.gz
CMake-5bebcea6e74c932856510bfe054aceee1ebb8f9b.tar.bz2
COMP: Fix for Sun CC stl allocator signature of allocate method.
Diffstat (limited to 'Source/kwsys/hashtable.hxx.in')
-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
{