Boost logo

Boost :

Subject: Re: [boost] [pool] object_pool::destroy_all? (from users)
From: diego nieto cid (dnietoc_at_[hidden])
Date: 2009-05-28 11:22:33


Hi,

Anybody knows what happened to the iterator that was suggested? I mean, what
keeps it from being added to the library?

Michael Marcin-2 wrote:
>
> Yes, destructing and recreating the object pool will release and
> allocate memory with the system heap.
>
> - Michael Marcin
>

May that be avoided by calling the destructors and constructors directly?
For example,

destroy_all (object_pool& pool) {
      pool.~object_pool();
      new (&pool) object_pool();
}

I'm not sure about the correctness of those instructions. Anyway, its not
something you want all around your code.

-- 
View this message in context: http://www.nabble.com/-pool--object_pool%3A%3Adestroy_all--%28from-users%29-tp8564172p23750320.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

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