11 Jul
2002
11 Jul
'02
7:54 p.m.
From: "Mark Storer"
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.