
30 Sep
2005
30 Sep
'05
6:49 p.m.
I haven't personally worked with the pool allocators much, so perhaps my suggestion was misplaced. I was thinking that you wanted a pool that allocated only enough memory for a single instance, rather than a single instance of a pool that could store many objects. Anyhow, to use aligned_storage like I was thinking, you might do something like:
-Jason
You're right, that wasn't what I was attempting. I was looking for something that worked liked singleton_pool but cleaned up objects like object_pool. On the other hand, thanks for your code. It helped me understand aligned_storage better. Joel Eidsath