Boost logo

Boost Users :

From: Kirit Sælensminde (kirit.saelensminde_at_[hidden])
Date: 2007-09-28 05:32:16


Cory Nelson wrote:
> It would be useful if shared_ptr and family provided a way to give a
> custom allocator. For instance, to replace the quick allocator with a
> lock-free one.
>

By a quirk of excellent timing this recipe submitted earlier today
illustrates how to do it quite nicely.
http://www.boostcookbook.com/Recipe:/1234950

It still uses new and delete, but they look quite simple to replace.

K


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