From f56e609757b2b41834154b0dd80480bc88df15f2 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 24 Apr 2019 04:57:37 +0300 Subject: [PATCH] Fix mistake in weak_from_this_test --- test/weak_from_this_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/weak_from_this_test.cpp b/test/weak_from_this_test.cpp index 1a874e1..b090cbc 100644 --- a/test/weak_from_this_test.cpp +++ b/test/weak_from_this_test.cpp @@ -39,7 +39,7 @@ void test() *p = V(); - boost::weak_ptr q4 = p->shared_from_this(); + boost::weak_ptr q4 = p->weak_from_this(); BOOST_TEST( !q4.expired() ); BOOST_TEST( !(q < q4) && !(q4 < q) ); BOOST_TEST( !(q2 < q4) && !(q4 < q2) );