Changes I made to get boost::pool code to compile/execute under CW 8.1
12 Aug
2002
12 Aug
'02
1:34 a.m.
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
8143
Age (days ago)
8143
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ray S. Gallimore