From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-07-11 14:54:09


From: "Mark Storer" <mstorer_at_[hidden]>
> Is there a reason weak_ptr doesn't have overloaded * and -> operators?

Yes. The object that the weak_ptr refers to can disappear at any time.
That's why it's required to obtain a "strong reference" (shared_ptr) to it
first that will keep it alive.