Hi.
Compiling "test_pool_alloc.cpp" on Windows2000(MS Visual C++ 6.0)I
got a number of warnings and errors:
Help me please to resolve these problems ( I want to use Boost in our
Windows & VxWorks project)
Regards.
Baruch.
Compiling...
test_pool_alloc.cpp
c:\program files\microsoft visual studio\vc98\include\list(386) :
error C2039: '_Charalloc' : is not a member
of 'fast_pool_allocator'
c:\program files\microsoft visual studio\vc98\include\list
(386) : while compiling class-template member function 'struct
std::list >::_Node *__thiscall
std::list >::_Buynode(struct std::
list >::_Node *,struct
std::list >::_Node *)'
Error executing cl.exe.
test_pool_alloc.obj - 1 error(s), 0 warning(s)
/////////////////////////////////////////////////////////////
Compiling... - Withot list and dequeue testing
test_pool_alloc.cpp
c:\boost\boost_1_28_0\boost\pool\pool.hpp(267) : warning
C4800: 'unsigned int' : forcing value to bool 'true' or 'false'
(performance warning)
c:\boost\boost_1_28_0\boost\pool\pool.hpp(263) : while
compiling class-template member function 'void __thiscall
boost::pool<struct
boost::default_user_allocator_new_delete>::ordered_free(void
*const ,const unsigned int)'
c:\boost\boost_1_28_0\boost\pool\pool.hpp(492) : warning
C4800: 'unsigned int' : forcing value to bool 'true' or 'false'
(performance warning)
c:\boost\boost_1_28_0\boost\pool\simple_segregated_storage.hpp
(70) : while compiling class-template member function 'void
*__thiscall boost::pool<struct
boost::default_user_allocator_new_delete>::ordered_malloc(unsigned
int)'
c:\boost\boost_1_28_0\boost\pool\simple_segregated_storage.hpp(70) :
error C2248: 'object_creator' : cannot access private struct declared
in class 'boost::details::pool::singleton_default::pool_type>'
c:\boost\boost_1_28_0\boost\pool\detail\singleton.hpp(63) :
see declaration of 'object_creator'
c:\boost\boost_1_28_0\boost\pool\simple_segregated_storage.hpp
(70) : while compiling class-template static data member 'struct
boost::details::pool::singleton_default::pool_type>::object_creator
boost::details::pool::singleton_default::pool_type>::create_object'
Error executing cl.exe.
test_pool_alloc.obj - 1 error(s), 2 warning(s)
/////////////////////////////////////////////////////////////