Boost logo

Boost Users :

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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net