
28 Mar
2008
28 Mar
'08
12:51 p.m.
Thanks a lot. The object_pool approach doesn't work; it causes also a segmentation fault. The option of explicitly allocating the object does work fine.
Make sure you use a recent compiler and Boost. I have seen pool segfaulting on some not-so-old platforms, especially with pool_allocator being used with nested containers. I found out that with Boost 1.34.1, g++ 4.3.0 and MSVC 9.0 all works fine.
I've looked into the pool.hpp commitlog and it seems that the error I mentioned ("vector of vectors" or similar usage) was fixed 2005-1-19, so it probably never was a compiler issue. Filip