COMP: Fix for Sun CC stl allocator signature of allocate method.

This commit is contained in:
Brad King 2005-04-13 15:22:32 -04:00
parent 81f7bc9cdb
commit 5bebcea6e7
1 changed files with 5 additions and 1 deletions

View File

@ -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
{