]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/smart_ptr/test/weak_from_this_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / smart_ptr / test / weak_from_this_test.cpp
index 1a874e16fe07a98baefc729301fb5b775f34aab7..b090cbc0411f31d5daf3ce3d8be1e3a0b70be6ec 100644 (file)
@@ -39,7 +39,7 @@ void test()
 
     *p = V();
 
-    boost::weak_ptr<V> q4 = p->shared_from_this();
+    boost::weak_ptr<V> q4 = p->weak_from_this();
     BOOST_TEST( !q4.expired() );
     BOOST_TEST( !(q < q4) && !(q4 < q) );
     BOOST_TEST( !(q2 < q4) && !(q4 < q2) );