weak_ptr... no * or ->?
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"
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.
8175
Age (days ago)
8175
Last active (days ago)
1 comments
2 participants
participants (2)
-
Mark Storer
-
Peter Dimov