
11 Jul
2002
11 Jul
'02
6:12 p.m.
Is there a reason weak_ptr doesn't have overloaded * and -> operators? --Mark Storer Software Engineer Cardiff Software #include <disclaimer> typedef std::disclaimer<Cardiff> Discard;

11 Jul
11 Jul
7:54 p.m.
New subject: [Boost-Users] weak_ptr... no * or ->?
From: "Mark Storer" <mstorer@cardiff.com>
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.
8394
Age (days ago)
8394
Last active (days ago)
3 comments
4 participants
participants (4)
-
Mark Storer
-
Peter Dimov