Boost logo

Boost :

From: Greg Colvin (Gregory.Colvin_at_[hidden])
Date: 2002-09-07 12:26:36

At 10:39 AM 9/7/2002, Larry Evans wrote:
>Larry Evans wrote:
>>Greg Colvin wrote:
>>Anyway, the shared_ptr and shared_count also were modified to allow this. I could
>>post these if you want, or I could give further explanation. I realize this is kinda sketchy,
>>but let me know and I try and be clearer.
>Another modification I was thinking of was using the allocator from the conservative
>collector of cmm ( I figured
>it could be used to enumerate all the allocated objects (much like iterating
>through cyclic_ptr's recycler's handles). In addition, since this is a conservative collector,
>it would be easy to check for any leaks. What do you think? Also, it could be used
>to eliminate the need for a weak_ptr count (as mentioned in my earlier post about "conserve+
>shared_ptr advantages.")

Sounds like a tradoff -- the advantages of a custom allocator versus the
convenience to the user of using whatever allocator they want. Also, a
conservative collector can fail to release memory. And besides, if you
are going with a conservative collector there is no need for any smart

Boost list run by bdawes at, gregod at, cpdaniel at, john at