sjc> Sorry, Boost.Pool does not currently support MSVC, due to that compiler's
sjc> extreme lack of template support.
It works with STLPort(www.stlport.com). On VC 6 you must define
2 helper functions
__stl_alloc_create and __stl_alloc_rebind in namespace std. Some thing
like that
namespace std
{
template
inline boost::pool_allocator<_Tp2, _Tp3, _Mtx>& _STLP_CALL
__stl_alloc_rebind(boost::pool_allocator<_Tp1, _Tp3, _Mtx>& __a, const _Tp2*)
{ return (boost::pool_allocator<_Tp2, _Tp3, _Mtx>&)(__a); }
template
inline boost::pool_allocator<_Tp2, _Tp3, _Mtx> _STLP_CALL
__stl_alloc_create(const boost::pool_allocator<_Tp1, _Tp3, _Mtx>&, const _Tp2*)
{ return boost::pool_allocator<_Tp2, _Tp3, _Mtx>(); }
}
On VC7 work without helper functions
-Ilya