weak_ptr documentation updates; get() declared deprecated.

[SVN r15111]
This commit is contained in:
Peter Dimov committed 2002-08-29 15:18:04 +00:00
1 parent c02fee7013
commit b916445dd8
2 files changed
+28 -9

No files matched your search

+5 -1
View File
@@ -76,7 +76,7 @@ public:
this_type().swap(*this);
}
T * get() const // never throws; unsafe in multithreaded programs!
T * get() const // never throws; deprecated, removal pending, don't use
{
return pn.use_count() == 0? 0: px;
}
@@ -168,6 +168,10 @@ template<class T> shared_ptr<T> make_shared(weak_ptr<T> const & r) // never thro
}
}
// Note: there is no get_pointer overload for weak_ptr.
// This is intentional. Even get() will disappear in a
// future release; these accessors are too error-prone.
} // namespace boost
#ifdef BOOST_MSVC