
16 Jun
2005
16 Jun
'05
11:40 a.m.
Larry Evans wrote:
On 06/15/2005 12:47 PM, Peter Dimov wrote:
Larry Evans wrote:
Maybe you could more easily find the error in the conversion of sp_collector.cpp than me, if you're interested.
I'm not sure whether we should invest any effort in porting sp_collector.cpp; it's not an official part of shared_ptr and doesn't work reliably.
Do you mean it doesn't work reliably because
1) the test for shared_ptr existence within a gc object is "conservative" and could result in "false" pointers and thereby retain memory which should be freed
This, and the fact that it can't follow a vector< shared_ptr<> > member, for instance.