Boost logo

Boost :

From: Ilya Chvetsov(work) (chvetsov_at_[hidden])
Date: 2003-11-18 11:41:44


   Hi, boosters!
It seems to me, boost.pool has a problem. This problem has been already
reported.
The following program hangs in allocate method.

<code>
#include <boost/pool/pool_alloc.hpp>
int main(int argc, _TCHAR* argv[])
{
        typedef boost::pool_allocator<int> IntAllocator;
        IntAllocator alloc;
        for(int i = 0; i < 100; ++i)
                alloc.allocate(0);
        return 0;
}
</code>

STLPort is using allocator in this manner, for example.
-Ilya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk