]> git.lyx.org Git - lyx.git/blobdiff - boost/boost/weak_ptr.hpp
complie fix
[lyx.git] / boost / boost / weak_ptr.hpp
index e04b4f12d95424771e4d58cc2daffc83187e9fe9..c76cb28a13ebabca7b8dc703c238ae6fba60daf3 100644 (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