Re: [boost] Weak pointers owning object

2003-06-18 Thread Peter Dimov
Bruno Martínez wrote: > Hi, > I was wondering if it was possible to have two weak pointers that > together own an object. That is, if one of the two is destroyed the > other fails to construct a shared_ptr, but as long as both exist the > object is not destroyed, even if no other weak/shared ptr ex

[boost] Weak pointers owning object

2003-06-16 Thread Bruno Martínez
Hi, I was wondering if it was possible to have two weak pointers that together own an object. That is, if one of the two is destroyed the other fails to construct a shared_ptr, but as long as both exist the object is not destroyed, even if no other weak/shared ptr exists. This would come handy