Boost logo

Boost Users :

Subject: Re: [Boost-users] Object pools?
From: Lagrange (trueorca_at_[hidden])
Date: 2010-02-18 16:14:05


Missed the Deleter injection in deallocate:

> void deallocate(asio::buffer *b) {
> this->buffers.push_front(buffer_ptr(b));
> }

Should be:

> void deallocate(asio::buffer *b) {
> this->buffers.push_front(buffer_ptr(b,
> PoolBufferDeleter(shared_from_this())));
> }



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net