On Mon, 2005-08-22 at 16:38 -0600, Alex Rousskov wrote: > Hi there, > > I need to implement what some call a "weak pointer". A weak pointer > becomes null or otherwise invalid when the corresponding object goes > away or is invalidated. For an example, please see > > http://www.boost.org/libs/smart_ptr/smart_ptr.htm > > I cannot use existing RefCount.h for weak pointing because the interface > does not support "invalidation" of a pointer -- the RefCount pointer > stays valid until nobody uses it.
CBData works fine with standard classes. I'm curious though why you need a weak ref? Most weak ref uses I've seen are roughly a failure to use observers. Rob -- GPG key available at: <http://www.robertcollins.net/keys.txt>.
signature.asc
Description: This is a digitally signed message part
