
16 Jun
2005
16 Jun
'05
1:05 p.m.
On 06/16/2005 07:48 AM, Larry Evans wrote: [snip]
But if the problematic roots are known in advance, why doesn't the programmer simply use weak_ptr's to them? I guess it's because the programmer doesn't know he's connecting to a problematic root, although he knows what they are. I guess he doesn't want to store the identity of the problematic roots in some global data structure and check each time he makes a connection. Eric, is that about right?
OOPS. I jumped to the conclusion the "problematic root" must be the target of a "cycle closing smart pointer" instead of all "cycle closing smart pointers" were reachable from one or more of the "problematic roots". I hope that describes Eric's situation.