Added weak_from_raw(), for use in conjunction with

enable_shared_from_raw base class.



[SVN r57423]
This commit is contained in:
Frank Mori Hess
2009-11-05 21:41:38 +00:00
parent 2ee5eb70f3
commit 9f49538b37
4 changed files with 56 additions and 3 deletions
+4 -3
View File
@@ -183,10 +183,11 @@ public:
pn.swap(other.pn);
}
void _internal_assign(T * px2, boost::detail::shared_count const & pn2)
template<typename Y>
void _internal_aliasing_assign(weak_ptr<Y> const & r, T * px2)
{
px = px2;
pn = pn2;
pn = r.pn;
}
template<class Y> bool _internal_less(weak_ptr<Y> const & rhs) const
@@ -225,6 +226,6 @@ template<class T> void swap(weak_ptr<T> & a, weak_ptr<T> & b)
#ifdef BOOST_MSVC
# pragma warning(pop)
#endif
#endif
#endif // #ifndef BOOST_SMART_PTR_WEAK_PTR_HPP_INCLUDED