|
Boost Users : |
From: Ray S. Gallimore (gallimo_at_[hidden])
Date: 2002-08-11 20:34:53
Here is what I did to get boost::pool to compile/execute on CW 8.1:
test_pool_alloc.cpp
=============
1) To execute w/o memory access violations,
define BOOST_NO_PROPER_STL_DEALLOCATE
sys_allocator.hpp
===========
1) To compile, change signature of allocate in both allocators
from:
static pointer allocate(const size_type n, const pointer = 0)
to:
static pointer allocate(const size_type n, const void* = 0)
2) To get time_pool_alloc.cpp to execute w/o memory access violations,
change definition of new_delete_allocator
from:
{ delete [] p; }
to:
{ delete [] (char*)p; }
Ray Gallimore
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net